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&...]