[jboss-dev-forums] [JBoss Messaging Development] - Bridge From Jboss ESB 4.4 to ActiveMQ 5.3

mnop629 do-not-reply at jboss.com
Mon Dec 7 23:53:05 EST 2009


Does 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?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269486#4269486

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269486



More information about the jboss-dev-forums mailing list