JBoss Community

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

created by Alexandre Santoro in JMX Development - View the full discussion

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);



     // 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

Start a new discussion in JMX Development at Community