Hi all,
I followed instructions from a previous thread "MDB Connecting to remote queues" to setup the MDB to subscribe to a remote topic. But the MDB continue to subscribe to the local server.
JBoss version is 3.0.6. Here is the config file I changed :
Add in jms-service.xml the following :
<!-- The JMS Remote provider loader -->
RemoteJMSProvider
org.jboss.jms.jndi.JBossMQProvider
MyremoteServer:1099
XAConnectionFactory
XAConnectionFactory
The MDB jboss.xml file :
<?xml version = "1.0" encoding = "UTF-8"?>
<enterprise-beans>
<message-driven>
<ejb-name>TestMDB</ejb-name>
<destination-jndi-name>topic/testDurableTopic</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/TopicConnectionFactory</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<jndi-name>ConnectionFactory</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
<mdb-user>john</mdb-user>
<mdb-passwd>needle</mdb-passwd>
<mdb-subscription-id>DurableSubscriberExample</mdb-subscription-id>
<invoker-bindings>
<invoker-proxy-binding-name>foo</invoker-proxy-binding-name>
<!-- must match name of invoker-proxy-binding-->
</invoker-bindings>
</message-driven>
</enterprise-beans>
<invoker-proxy-bindings>
<invoker-proxy-binding>
foo
<invoker-mbean/>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
RemoteJMSProvider
StdJMSPool
15
1
10
queue/DLQ
10
0
</proxy-factory-config>
</invoker-proxy-binding>
</invoker-proxy-bindings>
Thank you