Hi Brian,

Answers in line.

From: "Brian McSweeney" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: [JBoss-user] Basic JMX question
Date: Wed, 19 Feb 2003 16:03:24 -0000

Hi all,
yet again in my quest to write container independent code, I'm stuck. :-)

I want to use the Timer service in a container independent manner. The
sheduler services for example isn't container independent :-(.

So, the first problem I have here is, I need to get a reference to the MBeanServer
object. Now I know that JMX isn't standard in J2EE until version 1.4 but does the code

MBeanServerFactory.findMBeanServer(null);
Yes, the other method is for your MBean to
implement javax.management.MBeanRegistration
This is how jboss's ServiceMBeanSupport provides
the getServer() method.


work in JBoss? If so, at least I'll be writing forward compatable code :-) Also,
I think Weblogic uses JMX already too so this might work too.

also, is an MBeanServer per jvm? What happens when you cluster?
The MBeanServer is a purely local concept (same jvm)
The standard for remote access to an MBeanServer (jsr160)
has has not been released for public review yet.

You will find many adaptors/connectors already implemented,
jboss has rmi/ejb/html and jboss.net versions.
The html and ejb versions should work with clustering if
suitably configured, but the MBean state is not
replicated across the cluster.

JBoss4/jbossmx standalone already has what will become our
implementation of jsr160 - JBoss Remoting

thanks,
Brian

_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to