-
1. Re: architecture question
jhaynie Feb 2, 2003 1:17 PM (in response to jmb-d)The functionality you're looking for is part of the JSR 160 - JMX Remoting specification. This specification defines how a client can access remote MBeans to handle invocation.
We do have this working in HEAD (not JSR compatible since the JSR is still in internal draft), but the full implementation (including JSR160) will be part of the JB4.0 release - which is due out around June.
So, depending on your time requirements, you can either use what we have in HEAD now, or wait a little bit and get a more fully supported JMX Remoting framework on the official release. -
2. Re: architecture question
prpatel Feb 4, 2003 6:56 AM (in response to jmb-d)Hello,
how is the code in HEAD any different than the JBossMX 1.1.2 release that Juha posted a few weeks ago (I assume they are the same code... but we all know what happens when you assume...) ? See:
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ what I can tell of the JBossMX 1.1.2 release, it looks like there is some initial support for Remoting.
cheers
Pratik -
3. Re: architecture question
prpatel Feb 4, 2003 1:08 PM (in response to jmb-d)Ok, I answered my own question (don't you hate it when that happens?)... they are the same thing (except, of course, if you checkout the jbossmx module from CVS you get the latest and greatest)
<to the original poster of this topic>
And yes, there is some preliminary support for Remoting! There is a sample you can run to see JMX remoting for yourself.
cheers
Pratik -
4. Re: architecture question
juhalindfors Feb 4, 2003 2:37 PM (in response to jmb-d)If you're using JBoss 3.0.x version you can use the RMI adaptor to connect to the JBoss MBean server:
String connectorName = "jmx/rmi/RMIAdaptor";
RMIAdaptor server = (RMIAdaptor) new InitialContext().lookup(connectorName);
where RMIAdaptor interface contains the relevant methods of the MBeanServer interface. -
5. Re: architecture question
roxburd Mar 24, 2003 12:48 PM (in response to jmb-d)Really?
I have an EJB accessing the local RMIAdaptor via the RMIAdaptorImpl object (where the code above uses the RMIAdaptor object). When I try to use that same code to access an RMIAdaptor on a remote JBoss instance I get ClassCastException: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub
For accessing RMIAdaptors on remote seervers, should I cast to RMIAdaptor or RMIAdaptorImpl_Stub? The problem is I can't find where to import either of these classes.
TIA,
Dave