On 10/12/02 15:14, "Thorsten Mauch" <[EMAIL PROTECTED]> wrote:

> Hi All
> Meanwhile I made a new version of the JBoss binding. Now i don't subclass
> the the JBoss class anymore. But in order to work wiht JBoss I can't avaoit
> to
> have refernces to the JBoss project at all.
> First in need to implement ServiceMBean interface, becuase thats what it
> makes 
> to JBoss service.

FYI, this is not completely true. JBoss only looks to see if your Mbean
exports "create", "start", "stop", or "destroy" JBoss service lifecycle
methods via your mbean's MBeanInfo. Since you're using a standard mbean (as
opposed to a DynamicMBean or ModelMbean), the JMX server uses introspection
on your service interface to build the MBeanInfo descriptor. So, long story
short, you can just define any of the service lifecycle methods that you
want to be called in your MBean interface and it will work!

Regards,

--mike



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to