[jboss-user] [Messaging, JMS & JBossMQ] - Re: Using JNDIProviderAdapter from client (MDB) code?
genman
do-not-reply at jboss.com
Sun Aug 20 02:10:06 EDT 2006
For inbound, define your configuration in standardjboss.xml and then in jboss.xml:
<message-driven>
| <ejb-name>RouterMDB</ejb-name>
| <destination-jndi-name>...</destination-jndi-name>
| <configuration-name>Remote Message Driven Bean</configuration-name>
|
It's better to use a -ds.xml file (JCA) connection to your provider outbound.
Then you simply do:
| ConnectionFactory cf =
| new InitialContext().lookup("java:/RemoteJmsXA");
| Connection c = cf.createQueueConnection();
| try {
| } finally {
| c.close();
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966292#3966292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966292
More information about the jboss-user
mailing list