This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Wrapping a Remote Interface Object Reference in a JMS ObjectMessage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Wrapping a Remote Interface Object Reference in a JMS ObjectMessage" Watch "Wrapping a Remote Interface Object Reference in a JMS ObjectMessage" New topic
Author

Wrapping a Remote Interface Object Reference in a JMS ObjectMessage

Sathya Natarajan
Greenhorn

Joined: Dec 17, 2003
Posts: 1
Hi Friends,
I am doing a JNDI lookup of a Remote Object of a Stateful Bean from a Client. I want to wrap the Object Reference in a JMS ObjectMessage and get that Object Reference in another Program.
How to do this?
HELP ME!!


With Regards,<br />Sathya...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you're looking for a how-to regarding sending ObjectMessages in general, I'd suggest taking a look at the JMS Tutorial. If you're asking how to send an EJB reference in particular inside an ObjectMessage, you'll first need to getHandle() and put the serializable handle object into the message.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
jQuery in Action, 2nd edition
 
subject: Wrapping a Remote Interface Object Reference in a JMS ObjectMessage
 
Similar Threads
JMS Performance
ObjectMessage to XML
RE: Receiveing ObjectMessage in JMS
Exception in receiving ObjectMessage in JMS
Is javax.jms.Session threadsafe?