Hi Guillaume! It can be incompatble between Geronimo's ActiveMQ and ServiceMix's.so I followed your instruction that embedding a broker and creating an ActiveMQ connection factory in servicemix.xml file using spring.It seemed to work fine. Unfortunately,if i deployed two different jms's SA by this method,some errors occur in Geronimo as below:
... 21:09:22,984 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [org.apache.activemq.xbean.XBeanBrokerService]; root of BeanFactory hierarchy] 21:09:22,984 INFO [BrokerService] ActiveMQ 4.0-RC2 JMS Message Broker (localhost) is starting 21:09:22,984 INFO [BrokerService] For help or more information please see: http://incubator.apache.org/activemq/ 21:09:23,000 ERROR [BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Broker javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Broker ... The similar problem occur when running two different jms's example in SM's standalone mode as below: ... Loading Apache ServiceMix from file: servicemix.xml WARN - ManagementContext$1.run(86) | Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException: jm xrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi] ERROR - BrokerService.start(370) | Failed to start ActiveMQ JMS Message Broker. Reason: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind ... I know that both of above are caused because we start a broker for each by embedding activemq.xml. then I try to add a shared broker to solve these by ServiceMixGBean's doStart() Method,but failed to start broker by gbean. Thanks! SP Liu -- View this message in context: http://www.nabble.com/How-to-run-multi-jms-assembly-deployed-in-ServiceMix-within-Geronimo-t1601059.html#a4341466 Sent from the ServiceMix - User forum at Nabble.com.
