Hi,

  I am trying to integrate activemq 5 and jgroups. My config file looks like
below.   I want to configure broker clustering using multicast and so I
decided to use jgroups.

<networkConnectors>
            <!-- by default just auto discover the other brokers-->
                <networkConnector name="dev01"
uri="jgroup://224.1.2.10:61620"
                dynamicOnly="true"
                conduitSubscriptions="false"
                networkTTL="6"
                decreaseNetworkConsumerPriority="false"/>
        </networkConnectors>


 <!-- The transport connectors ActiveMQ will listen to -->
        <transportConnectors>
            <transportConnector name="multicast"
uri="jgroup://224.1.2.10:61619"/>
        </transportConnectors>

However, I am always getting the following exception, even though
jgroups.jar is in classpath. Am I missing some other configuration. Would
appretiate any help on this.

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService'
defined in class path resource [conf/activemq.xml]: Cannot create inner bean
'networkConnector#129f6e7' of type
[org.apache.activemq.network.DiscoveryNetworkConnector] while setting bean
property 'networkConnectors' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'networkConnector#129f6e7' defined in class path resource
[conf/activemq.xml]: Error setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'uri' threw
exception; nested exception is java.io.IOException: DiscoveryAgent scheme
NOT recognized: [jgroup]
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:228)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:123)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)

-- 
View this message in context: 
http://www.nabble.com/ActiveMQ-5-and-jgroups-tp22064798p22064798.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to