}
private boolean connectTibco(final String url, final String user,
final String password) {
try {
TibjmsConnectionFactory tibcoConnFactory = new TibjmsConnectionFactory(url);
/* set heartbeat interval to detect network issues */
// Tibjms.setPingInterval(10);
/* fault-tolerant switch */
// Tibjms.setExceptionOnFTSwitch(true);
// tibcoConnFactory.setConnAttemptCount(10);
// tibcoConnFactory.setConnAttemptDelay(1000);
// tibcoConnFactory.setConnAttemptTimeout(1000);
// tibcoConnFactory.setReconnAttemptCount(1000000000);
// tibcoConnFactory.setReconnAttemptDelay(1000);
// tibcoConnFactory.setReconnAttemptTimeout(1000);
//Tibjms.setExceptionOnFTSwitch(true);
tibcoConnFactory.setConnAttemptCount(10);
tibcoConnFactory.setConnAttemptDelay(1000);
tibcoConnFactory.setConnAttemptTimeout(1000);
tibcoConnFactory.setReconnAttemptCount(10);
tibcoConnFactory.setReconnAttemptDelay(1000);
tibcoConnFactory.setReconnAttemptTimeout(1000);
/* create the connection */
//tibcoConn = tibcoConnFactory.createConnection(user, password);
HpCommonConfig.tibcoConn = tibcoConnFactory.createConnection(user, password);
// tibcoConn.setExceptionListener(new ExceptionListener(){
//
// @Override
// public void onException(JMSException jmse) {
// if (tibcoConn != null) {