Bridge From Jboss ESB 4.4 to ActiveMQ 5.3
mnop629 Dec 7, 2009 11:53 PMDoes anyone able to establish more than one bridge from JBM to ActiveMQ without specify extra ActiveMQJMSProvider?
I mange to create only one bridge service from JBM to ACtiveMQ, Srouce below:
jms-ds.xml
<mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.messaging:service=JMSProviderLoader,name=ActiveMQJMSProvider"> <attribute name="ProviderName">ActiveMQJMSProvider</attribute> <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute> <!-- The combined connection factory --> <attribute name="FactoryRef">ConnectionFactory</attribute> <!-- The queue connection factory --> <attribute name="QueueFactoryRef">ConnectionFactory</attribute> <!-- The topic factory --> <attribute name="TopicFactoryRef">ConnectionFactory</attribute> <attribute name="Properties"> java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url=tcp://10.10.10.10:61616 queue.inbound=queue/qError queue.outbound=VirtualQueue.ConfirmedOrders </attribute> </mbean> <tx-connection-factory> <jndi-name>ConnectionFactory</jndi-name> <xa-transaction/> <track-connection-by-tx/> <rar-name>activemq-rar-5.3.0.rar</rar-name> <connection-definition>javax.jms.ConnectionFactory</connection-definition> <ServerUrl>tcp://10.10.10.10:61616</ServerUrl> <min-pool-size>1</min-pool-size> <max-pool-size>200</max-pool-size> <blocking-timeout-millis>30000</blocking-timeout-millis> <idle-timeout-minutes>3</idle-timeout-minutes> </tx-connection-factory>
bridge-service.xml
<?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=ActiveMQOutboundBridge" xmbean-dd="xmdesc/Bridge-xmbean.xml"> <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends> <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=ActiveMQJMSProvider</depends> <attribute name="SourceDestinationLookup">queue/qTempBridge</attribute> <attribute name="TargetDestinationLookup">outbound</attribute> <attribute name="TargetUsername">user</attribute> <attribute name="TargetPassword">test</attribute> <attribute name="QualityOfServiceMode">0</attribute> <attribute name="MaxBatchSize">1</attribute> <attribute name="MaxBatchTime">1000</attribute> <attribute name="FailureRetryInterval">30000</attribute> <attribute name="MaxRetries">-1</attribute> <attribute name="AddMessageIDInHeader">false</attribute> </mbean> </server>
I searched through so many forum, mostly are defined the queue.outbound=VirtualQueue.ConfirmedOrders in the ds.xml and recall the "outbound" in
<attribute name="TargetDestinationLookup">outbound</attribute>, it works perfectly with the "outbound" property.
On the other hand, I have tried to define the physical queue name in the
<attribute name="TargetDestinationLookup">VirtualQueue.ConfirmedOrders</attribute>and the JBoss doesn't deploy the bridge.
Does anyone know how to use the physical name in the bridge-service.xml?