Your MDB is running in a container. The container configuration tells JBoss how 
to listen to the topic. You can't connect within your MDB.

What you have to do is somehow bind the connection factory to JNDI and use this:

http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureAnMDBToTalkToARemoteQueue

You can bind stuff to JNDI fairly easily by following this example:

http://www.huihoo.com/jboss/online_manual/3.0/ch13s26.html

To review:

1.  Create JNDI entries for Queue/Topic connection factories using an MBean.
2.  Create an MBean that follows the "remote JMS Provider" example.  Note: 
You're not using remote JNDI! Look up the resources locally.
3.  Create your MDB using this provider.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978349
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to