-
1. Re: Register a JNDI name in an MBEAN
dimitris Apr 4, 2005 9:30 AM (in response to bmargulies)See the remote/local invocations in the FAQ:
http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX
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. -
2. Re: Register a JNDI name in an MBEAN
bmargulies Apr 4, 2005 9:33 AM (in response to bmargulies)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.
-
3. Re: Register a JNDI name in an MBEAN
bmargulies Apr 4, 2005 9:44 AM (in response to bmargulies)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?
-
4. Re: Register a JNDI name in an MBEAN
dimitris Apr 4, 2005 9:46 AM (in response to bmargulies)http://www.jboss.org/wiki/Wiki.jsp?page=HowCanAnEJBCallAnMBean
I'd register to jndi the dynamic proxy returned by
MBeanServerInvocationHandler.newProxyInstance(..);
I'd guess this will work with both servers.