• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

J2EE/J2SE JMS message

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic