Commits

Asankha Perera  committed aaf208f

minor JMS enhancements as per https://getsatisfaction.com/adroitlogic/topics/using_ultraesb_with_jms_swiftmq

allows multiple JMS sender configs, and the use of durable topics by not trying to set a clientId after setup of a connection

  • Participants
  • Parent commits 6d85ed6

Comments (0)

Files changed (2)

File modules/core/src/main/java/org/adroitlogic/ultraesb/transport/jms/JMSTransportListener.java

 
         if (props.containsKey("durableSubscriptionName")) {
             lsnr.setDurableSubscriptionName(props.get("durableSubscriptionName"));
-        } else {
-            lsnr.setDurableSubscriptionName(name);
         }
 
         if (props.containsKey("receiveTimeout")) {
 
         if (props.containsKey("transactionName")) {
             lsnr.setTransactionName(props.get("transactionName"));
-        } else {
-            lsnr.setTransactionName(name);
         }
 
         if (props.containsKey("transactionTimeout")) {
 
         if (props.containsKey("clientId")) {
             lsnr.setClientId(props.get("clientId"));
-        } else {
-            lsnr.setClientId(name);
         }
 
         if (props.containsKey("acceptMessagesWhileStopping")) {

File modules/core/src/main/java/org/adroitlogic/ultraesb/transport/jms/JMSTransportSender.java

     /** @exclude */
     public void start() {
         config.registerTransportSender(originatingTransport, this);
+        config.registerTransportSender(id, this);
         logger.info("Started JMS Sender : " + id + "...");
     }