This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JMS Message Body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS Message Body" Watch "JMS Message Body" New topic

JMS Message Body

vk jain

Joined: Oct 05, 2007
Posts: 21

I have developed a MDB to listen to the message recieved at Topic. My class publish ObjectMessage on Topic. This ObjectMessage contains java.util.HashMap object which in turn contains two key-value pair, one as String Value and another one as User Defined Java Object(

I want to pass whole object into Topic which contains javax.http.HttpSession object.

But while getting the message from Topic i am recieving only partially UserInfo Object, i am not able to get the HtppSession object from UserInfo object that was present in UserInfo object while publishing it.

I get Null pointer exception for userInfo.getHttpSession() method call.
And same call works before publishing message.

Can any one help why it is so happening?
It is sorta covered in the JavaRanch Style Guide.
subject: JMS Message Body
Similar Threads
unable to receive object message
h:data_table tag
JMSException Error deserializing object
not able to get ObjectMessage at the JMS listner
Remove JMS message from Queue programatically