[jboss-user] [JBoss Messaging] - Can a bridge work fine with the remote source and local targ
jsnhsu
do-not-reply at jboss.com
Thu Aug 2 04:32:04 EDT 2007
I create two queues on two JBoss. I call the queue locates on the JBoss along with the bridge as local queue and which is the target queue. The other one on remote JBoss is the source queue. I want to pull the messages from remote to local. However, it's not working. There is no error message in the console. It seems that the bridge is just not working. If I create another queue on local to simulate the remote one. The bridge works fine. Please advice if I configured wrong or missed something.
This is the configuation of the bridge.
| <mbean code="org.jboss.jms.server.bridge.BridgeService"
| name="jboss.messaging:service=Bridge,name=Remote2LocalBridge"
| xmbean-dd="xmdesc/Bridge-xmbean.xml">
| <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider,server=remoteServer</depends>
| <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
| <!--<depends>jboss.messaging.destination:service=Queue,name=remoteQueue</depends>-->
| <depends>jboss.messaging.destination:service=Queue,name=localQueue</depends>
| <attribute name="SourceDestinationLookup">/queue/remoteQueue</attribute>
| <attribute name="TargetDestinationLookup">/queue/localQueue</attribute>
| <attribute name="SourceUsername">remoteUser</attribute>
| <attribute name="SourcePassword">remotePassword</attribute>
| <attribute name="TargetUsername">localUser</attribute>
| <attribute name="TargetPassword">localPassword</attribute>
|
This is the configuration in *.ds.xml:
| <connection-factories>
| <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
| name="jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider,server=remoteServer">
| <attribute name="ProviderName">RemoteJMSProvider</attribute>
| <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
| <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
| <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
| <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
| <attribute name="Properties">
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=remoteServer:1099
| </attribute>
| </mbean>
| </connection-factories>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069978#4069978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069978
More information about the jboss-user
mailing list