[jboss-user] [JBoss Messaging] - Re: MDBs failing to listen to remote topic/queues

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Jan 7 12:34:15 EST 2009

The link you provided is for JBossMQ, right?

Are you trying to connect to a remote JBossMQ?

All you need to do is to change jms-ds.xml:

  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |          name="jboss.jms:service=JMSProviderLoader,name=JMSProvider">
  |     <attribute name="ProviderName">DefaultJMSProvider</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     <!-- The combined connection factory -->
  |     <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
  |     <!-- Uncomment to use HAJNDI to access JMS
  |     <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=localhost:1100
  |     </attribute>
  |     -->
  |   </mbean>

Assuming you are trying to use a remote JBossMessaging:

The ConnectionFactory you use here should just be a remote CF (java:/ means local), and you should keep the properties accordingly to the remote node.

If you also have MDBs connecting locally, you should duplicate the configs on jms-ds and make sure your MDB is using the correct adapter.

For more question regarding this, you would be better on finding help at JCA forum or EJB forum. (MDB is an EJB/EJB3 component.. not JBossMessaging)

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

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

More information about the jboss-user mailing list