MBeanServer server = MBeanServerLocator.locate();
server.invoke(new ObjectName("jboss:type=Service,name-SystemProperties"),
"doSomething", new Object[]{}, new String[]{});
MBeanServerLocator is a jboss utility class somewhere in the common module.
david jencks
On 2003.02.12 00:08 Brian Wallis wrote:
>
> OK, I've looked every where for doco and an example but have not found
> enough
> to enlighten me. I want to use the SystemProperties MBean from a session
>
> bean but I have no idea how I can get a reference to it.
>
> It is defined in jboss-service.xml the standard way:
>
> <mbean code="org.jboss.varia.property.SystemPropertiesService"
> name="jboss:type=Service,name=SystemProperties">
>
> But what do I do in my client code to access this MBean and it's methods?
>
> The annoying thing is I know I've seen an example somewhere once before
> but I
> cannot find it now.
>
> thanks,
> brian wallis...
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld
> http://www.vasoftware.com
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user