Package com.tibco.tibjms

Examples of com.tibco.tibjms.TibjmsConnectionFactory


            admin = new TibjmsAdmin(serverURL == null ? jndiCF.getProviderURL() : serverURL, username, password);
         }
         else if (connectionFactory instanceof TibjmsConnectionFactory)
         {
            final TibjmsConnectionFactory tibCF = (TibjmsConnectionFactory) connectionFactory;
            final Map ssl = getSSLParameters(tibCF);

            serverURL = serverURL == null ? (String) BeanUtils.getProperty(tibCF, "serverUrl") : serverURL;
            username = username == null ? (String) BeanUtils.getProperty(tibCF, "userName") : username;
            password = password == null ? (String) BeanUtils.getProperty(tibCF, "userPassword") : password;
View Full Code Here


      return "DebugCF: " + super.toString();
    }
  }
  @Test
  public void testConnect() throws JMSException {
    TibjmsConnectionFactory cf = new TibjmsConnectionFactory() ;
    cf.setServerUrl("tcp://ldnmwaredev01.eur.ad.tullib.com:7222") ;
    Connection c = cf.createConnection() ;
    c.close() ;
  }
View Full Code Here

  }

  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) {
View Full Code Here

    return true;
  }

  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);
     
      /* create the connection */
      tibcoConn = tibcoConnFactory.createConnection(user, password);
//      tibcoConn.setExceptionListener(new ExceptionListener(){
//
//        @Override
//        public void onException(JMSException jmse) {
//          if (tibcoConn != null) {
View Full Code Here

TOP

Related Classes of com.tibco.tibjms.TibjmsConnectionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.