Can anyone tell me whether it is possible to send JMS messages from my J2SE application to a J2EE application? I need to send JMS messages from an application running on a device to my J2EE application. And if possible, how would you do it?
of course, it is possible to send JMS messages to a J2EE Application. The J2SE client can lookup the Topic/Queue and the Connection Factory from the JNDI Nameservice of the AppSrv. Each message that is send to the Destination, can be consumed by a J2EE component (a Message Driven Bean, e.g.) If you are using a "real" MOM like Websphere MQ (MQ Series), you won't even need the JNDI lookup.
Thus, there are a lot of possibilities.
Marco Barenkamp<br />_ _ _ _ _ ________________________ _ _ _ _ _ <br />L M I N T E R N E T S E R V I C E S AG<br /> <br />Head of Software Development<br /> <br /> <br />BEA Certified Enterprise Developer<br />Sun Certified Programmer for the Java2 Platform<br />Sun Certified Web Component Developer for the Java2 Platform<br />Sun Certified Developer for the Java 2 Platform <br />Sun Certified Business Component Developer for the Java 2 Platform <br />Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition<br /> <br />LMIS AG
Joined: Apr 05, 2006
Originally posted by Marco Barenkamp: The J2SE client can lookup the Topic/Queue and the Connection Factory from the JNDI Nameservice of the AppSrv.
Your previous statement is what I am having a problem with. I am trying to lookup the Queue on a JBoss application server, but I find it difficult to see how. Thanks for your response, at least now I know it is possible and I just have to find out how.
Regards Alfred [ May 09, 2006: Message edited by: Alfred Thomas ]
Joined: Aug 27, 2001
make sure that the Queue is available outside the AppSrv. If the JNDI name (inside the xml config file) of the queue starts with java:/, the queue will not be available outside the appsrv (default for databases).