Hi--
This may be a naive and/or sloppy approach, but could you stub out a
no-op init() method in your MBean, just so that NoSuchMethod error
wouldn't be thrown? Its not pretty, but it could probably get you past
this problem. (Unless I'm missing something here.. very possible.. :-)
)
--Joel
"Schaefer, Andreas" wrote:
>
> What is the problem that you cannot implement the necessary
> interfaces?
>
> Andy
>
> > -----Original Message-----
> > From: Julian Gosnell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 4:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-dev] Dynamically created 3rd-party MBeans.... -
> > Crystalised
> >
> >
> >
> > Thanks everyone for your input.
> >
> > I believe I am now able to crystalise my problem for you all.
> >
> > I wish to integrate some 3rd-party MBeans into JBoss.
> >
> > I create the first MBean, which creates others as and when needed,
> > dynamically (maybe days later), registering all of them with the same
> > MBeanServer.
> >
> > They are _NOT_ loaded from static descriptions in a file.
> >
> > They do _NOT_ implement org.jboss.util.Service.
> >
> >
> > My problem is this:
> >
> > If I set them up to register with the JBoss MBeanServer, the
> > ServiceControlMBean receives notification of their
> > registration and, in
> > spite of the fact that they do not implement org.jboss.util.Service,
> > calls init() on them unsuccessfully.
> >
> > It appears to me that:
> >
> > JBoss does not expect MBeans both not to implement Service not to be
> > statically loaded from a file.
> >
> > It seems to me that since I need to do exactly this with
> > JettyJMX, that
> > we need to resolve this (apologies if there is already a way to do it
> > and I have missed it).
> >
> > Am I wrong ?
> >
> > Suggestions ?
> >
> >
> > Jules
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development