• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2EE/J2SE JMS message

 
Alfred Thomas
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alfred Thomas
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic