Hello,

I am successfully using EJB3 MDBs to connect to a remote destination; defined a 
"RemoteJMSProvider" and connected using the "providerAdapterJNDI" annotation 
(see: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureAnEJB3MDBToTalkToARemoteQueue)

The twist is that I need to send another JMS message from within the MDB, so I 
need to create a client JMS connection. It seems cleanest to reuse this 
provider, but I am not sure if I can/should.


  | InitialContext ctx = new InitialContext();
  | JNDIProviderAdapter remoteProvider = 
(JNDIProviderAdapter)ctx.lookup("java:/RemoteJMSProvider"); 
  | ???
  | ConnectionFactory connectionFactory = ???
  | Connection conn = connectionFactory.createConnection();
  | ...
  | 


API for JNDIProviderAdapter:
http://docs.jboss.org/jbossas/javadoc/4.0.4/server/org/jboss/jms/jndi/JNDIProviderAdapter.html

Questions:
* Can/should I use the JNDIProviderAdapter to get a ConnectionFactory?
* If so, which jar contains JNDIProviderAdapter.class (necessary to compile)?


Thanks,
Erik

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

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

Reply via email to