This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
     new 86e0981  AMQ-6905 : Upgraded ActivationConfigProperty as per API 
Documentation
86e0981 is described below

commit 86e09813ae13e93fa16858c9c7e4661ebdf3f4d5
Author: asutosh936 <[email protected]>
AuthorDate: Sat Mar 3 13:18:39 2018 -0600

    AMQ-6905 : Upgraded ActivationConfigProperty as per API Documentation
    
    (cherry picked from commit a1f15f45111aacdde2ff883116d32aa8c14e4adc)
---
 .../src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java 
b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
index b17674e..cf0be3e 100644
--- 
a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
+++ 
b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQResourceAdapter.java
@@ -129,7 +129,7 @@ public class ActiveMQResourceAdapter extends 
ActiveMQConnectionSupport implement
         }
         String userName = defaultValue(activationSpec.getUserName(), 
getInfo().getUserName());
         String password = defaultValue(activationSpec.getPassword(), 
getInfo().getPassword());
-        String clientId = activationSpec.getClientId();
+        String clientId = defaultValue(activationSpec.getClientId(), 
getInfo().getClientid());
         if (clientId != null) {
             cf.setClientID(clientId);
         } else {

Reply via email to