Package javax.jms

Examples of javax.jms.XATopicConnectionFactory


      XAQueueConnectionFactory xaQueueCF = (XAQueueConnectionFactory)JMSTestCase.ic.lookup("/CF_QUEUE_XA_TRUE");
      xaQueueConnection = xaQueueCF.createXAQueueConnection();
      assertConnectionType(xaQueueConnection, "xa-queue");

      XATopicConnectionFactory xaTopicCF = (XATopicConnectionFactory)JMSTestCase.ic.lookup("/CF_TOPIC_XA_TRUE");
      xaTopicConnection = xaTopicCF.createXATopicConnection();
      assertConnectionType(xaTopicConnection, "xa-topic");

      genericConnection.close();
      xaConnection.close();
      queueConnection.close();
View Full Code Here


/* 205 */     log.debug("using connection factory: " + factory);
/* 206 */     log.debug("using username/password: " + String.valueOf(username) + "/-- not shown --");
/*     */
/* 210 */     if ((factory instanceof XATopicConnectionFactory))
/*     */     {
/* 212 */       XATopicConnectionFactory tFactory = (XATopicConnectionFactory)factory;
/*     */       TopicConnection connection;
/*     */       TopicConnection connection;
/* 213 */       if (username != null)
/* 214 */         connection = tFactory.createXATopicConnection(username, password);
/*     */       else {
/* 216 */         connection = tFactory.createXATopicConnection();
/*     */       }
/* 218 */       log.debug("created XATopicConnection: " + connection);
/*     */     }
/* 220 */     else if ((factory instanceof TopicConnectionFactory))
/*     */     {
/* 222 */       TopicConnectionFactory tFactory = (TopicConnectionFactory)factory;
/*     */       TopicConnection connection;
/*     */       TopicConnection connection;
/* 223 */       if (username != null)
/* 224 */         connection = tFactory.createTopicConnection(username, password);
/*     */       else {
/* 226 */         connection = tFactory.createTopicConnection();
/*     */       }
/* 228 */       log.debug("created TopicConnection: " + connection);
/*     */     }
/*     */     else {
/* 231 */       throw new IllegalArgumentException("factory is invalid");
View Full Code Here

/* 547 */     log.debug("Attempting to create topic connection with user " + user);
/*     */     TopicConnection result;
/*     */     TopicConnection result;
/* 549 */     if (((tcf instanceof XATopicConnectionFactory)) && (this.isDeliveryTransacted))
/*     */     {
/* 551 */       XATopicConnectionFactory xatcf = (XATopicConnectionFactory)tcf;
/*     */       TopicConnection result;
/* 552 */       if (user != null)
/* 553 */         result = xatcf.createXATopicConnection(user, pass);
/*     */       else
/* 555 */         result = xatcf.createXATopicConnection();
/*     */     }
/*     */     else
/*     */     {
/*     */       TopicConnection result;
/* 559 */       if (user != null)
View Full Code Here

          XAQueueConnectionFactory xaQueueConnectionFactory = (XAQueueConnectionFactory) connectionFactory;
          sendToQueueXA((Queue) destination, xaQueueConnectionFactory);
 
        } else if (destination instanceof Topic) {
          log.debug("destination '"+destinationName+"' is a Topic: using xa topic jms apis");
          XATopicConnectionFactory xaTopicConnectionFactory = (XATopicConnectionFactory) connectionFactory;
          sendToTopicXA((Topic) destination, xaTopicConnectionFactory);
         
        } else {
          throw new JbpmException("invalid destination type for '"+destinationName+"': "+destination.getClass().getName());
        }
View Full Code Here

TOP

Related Classes of javax.jms.XATopicConnectionFactory

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.