This content has been marked as final.
Show 1 reply
-
1. Re: Configuration of the bridge btween JBoss messaging and A
yungsiu Nov 9, 2009 9:16 PM (in response to yungsiu)I am trying to implement like this:
> There are 2 servers: application server & jms server.
> App server has JBM queues and bridges, JMS server has activeMQ runing.
> Messages will be sent to the JBM queues from application and then forward to JMS server by bridges.
There is no problem on doing this with JBM to JBM, but failed with JBM to ActiveMQ.
It should be the configuration issue and there is little reference I can find from the web.
I have set jms-ds.xml and bridge-ds.xml as follows:jms-ds.xm: ... <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=ActiveMQJMSProvider"> <attribute name="ProviderName">ActiveMQJMSProvider</attribute> <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute> <attribute name="FactoryRef">ActiveMQConnectionFactory</attribute> <attribute name="QueueFactoryRef">ActiveMQConnectionFactory</attribute> <attribute name="TopicFactoryRef">ActiveMQConnectionFactory</attribute> <attribute name="Properties"> java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url=tcp://172.19.4.110:61616 </attribute> </mbean> ... bridge-ds.xml: ... <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=bArrival_err_incoming" xmbean-dd="xmdesc/Bridge-xmbean.xml"> <depends>jboss.mq.destination:service=Queue,name=qArrival_err_incoming</depends> <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends> <depends optional-attribute-name="TargetProviderLoader">jboss.jms:service=JMSProviderLoader,name=ActiveMQJMSProvider</depends> <attribute name="SourceDestinationLookup">/queue/qArrival_err_incoming</attribute> <attribute name="TargetDestinationLookup">/qCustoms_initial_err_incoming</attribute> <attribute name="QualityOfServiceMode">2</attribute> <attribute name="MaxBatchSize">1</attribute> <attribute name="MaxBatchTime">20000</attribute> <attribute name="FailureRetryInterval">5000</attribute> <attribute name="MaxRetries">-1</attribute> <attribute name="AddMessageIDInHeader">false</attribute> </mbean> ...
Could anyone tell me what's wrong with the config files? or what should be the correct configurations. Thanks~