jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE/J2SE JMS message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE/J2SE JMS message" Watch "J2EE/J2SE JMS message" New topic
Author

J2EE/J2SE JMS message

Alfred Thomas
Greenhorn

Joined: Apr 05, 2006
Posts: 9
Hi

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?

Regards
Alfred
Marco Barenkamp
Ranch Hand

Joined: Aug 27, 2001
Posts: 94
Hi,

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
Alfred Thomas
Greenhorn

Joined: Apr 05, 2006
Posts: 9
Originally posted by Marco Barenkamp:
The J2SE client can lookup the Topic/Queue and the Connection Factory from the JNDI Nameservice of the AppSrv.


Hi Marco,

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 ]
Marco Barenkamp
Ranch Hand

Joined: Aug 27, 2001
Posts: 94
Hi,

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).

Good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE/J2SE JMS message