This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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]
 
Don't get me started about those stupid light bulbs.
 
subject: Wrapping a Remote Interface Object Reference in a JMS ObjectMessage