[jboss-dev-forums] [JMX Development] - Re: Help with MDB getting "Security Context is null" error when accessing the JMX RMI Adaptor

Alexandre Santoro do-not-reply at jboss.com
Fri Apr 1 13:02:21 EDT 2011


Alexandre Santoro [http://community.jboss.org/people/santoro63] created the discussion

"Re: Help with MDB getting "Security Context is null" error when accessing the JMX RMI Adaptor"

To view the discussion, visit: http://community.jboss.org/message/597230#597230

--------------------------------------------------------------
What I did was do all the MDB work inside a thread I ran inside the MDB. Something like this:

...
public void onMessage(msg)  {
     Runnable r = new MyRMIAdaptorProcessingElement(msg);
     Thread t = new Thread(r);
     t.start();
     t.join();     
     // get anything I need from my r instance
}

This way whatever it is that the RMIAdaptor does, it does not do it to the MDB thread, but to the one I created. Worked ok in my case.

Good luck.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/597230#597230]

Start a new discussion in JMX Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2105]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110401/b777c46d/attachment.html 


More information about the jboss-dev-forums mailing list