File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setMessageDrivenContext() doubt

 
Deepak Jain
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Core Specification:
The setMessageDrivenContext method is called by the bean�s container to associate a message-
driven bean instance with its context maintained by the container. Typically a message-driven bean
instance retains its message-driven context as part of its state.

To test this functionality I had MDB that implements MessageDrivenBean interface.


setMessageDrivenContext() was never invoked and context remained null, which resulted in a NullPointerException in the onMessage().
 
Deepak Jain
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take time to respond to this question.
 
Deepak Jain
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Experts/Ranchers, Please take time and reply.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic