See the remote/local invocations in the FAQ:
If your ejb is collocated with the mbeanserver you can follow the advice in the FAQ (first item), or even try to register to the local jndi a dynamic proxy to the mbean. Haven't tried the second, but I believe it should work.
OK, I'm feeling dumber and dumber. My primary reason for embodying something as an mbean is to bring some JNI into the environment. I don't need 'remote' access at all, I just need an ordinary stateless session bean to get to the object that uses the JNI. I was assuming that I wanted to do this by advertising something via JNDI. So, does that give me any less complex options than the FAQ? Whatever I do also has to work in websphere.
Unfortunately, the websphere end of this is pre-1.2 JMX. Could you possibly point me at an example of something like the dynamic proxy idea?
I'd register to jndi the dynamic proxy returned by
I'd guess this will work with both servers.