Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Message Body  RSS feed

vk jain
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!