activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miroslav Novak (JIRA)" <>
Subject [jira] [Created] (ARTEMIS-157) Connection factory ignores HA property when serialized to uri
Date Thu, 16 Jul 2015 14:43:04 GMT
Miroslav Novak created ARTEMIS-157:

             Summary: Connection factory ignores HA property when serialized to uri 
                 Key: ARTEMIS-157
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 1.0.0
            Reporter: Miroslav Novak

Connection factory's HA attribute is ignored when convertint to URI. This has consequence
that standalone JMS client is not able to failover from to live to backup because it sets
ha=false be default.

Problem seems to be in method URISchema.getData:234:
 public static String getData(List<String> ignored, Object... beans) throws Exception
      StringBuilder sb = new StringBuilder();
      synchronized (beanUtils)
         for (Object bean : beans)
            if (bean != null)
               PropertyDescriptor[] descriptors = beanUtils.getPropertyUtils().getPropertyDescriptors(bean);
               for (PropertyDescriptor descriptor : descriptors)
                  if (descriptor.getReadMethod() != null && descriptor.getWriteMethod()
!= null && isWriteable(descriptor, ignored))
                     String value = beanUtils.getProperty(bean, descriptor.getName());
                     if (value != null)
      return sb.toString();

HA attribute is ignored because descriptor.getWriteMethod() != null in if statement is false
which means that there is no found any setHA() method.

This message was sent by Atlassian JIRA

View raw message