Vladimir Blagojevic wrote:

>
>
> > Each non-JBoss MBean that registers with JBoss has
> > init() called on it via JMX - Thus JBoss appears to
> > mandate that all MBeans registered with it's
> > MBeanServer support the JBoss Service lifecycle. Jetty
> > MBeans don't and are thus incompatible, despite the
> > fact that they are valid MBeans.
> > >
>
> Hey,
>
> I think I have a better grasp of your issue.  What you may want to do is
> to have some sort of jetty serviceControl MBean(like JBos's ServiceControl
> and ServiceConfiguration) that would properly intialize and use lifecycle
> methods of Jetty MBeans but have that jetty serviceControl be jboss
> compliant MBean.
>
> Also in that serviceControl when you load, initialize, etc your MBeans
> register it with JMX MBeanServer from JBoss to expose them.
>
> Does that make sense?
>
> Sorry If am off, I have to look at Jetty code more closely.
>

I already have a JettyServiceMBean, which is a JBossMBean, and kicks of
JettyMBeans. (corresponds to your  jetty serviceControl MBean)

So I have no problem connecting Jetty into JBoss.

What I want is to register the JettyMBeans with the JBoss MBeanServer.

I cannot do this because JBoss is mandating a particular lifecycle (nothing
to do with JMX - AFAIK).

I can successfully create a new MBeanServer and register all JettyMBeans with
this, but it is not connected to the JBoss JMX Agent.

Can I attach another MBeanServer to the JMX Agent (it is 'beyond the scope'
of the spec I have)?
Can I register 3rd party MBeans with the JBossMBeanServer - how ?
What else could I do ?

Jules



>
> Cheers,
> Vladimir
>
> > > > Every time a Jetty MBean is registered, JBoss
> > > tries to
> > > > call it's init() method, resulting in an exception
> > > > being thrown from within JMX.
> > > >
> > > > Maybe I am taking the wrong approach.
> > > >
> > >
> > > yeah try implementing initService, startService()
> > > which throw Exception
> > > and stopService(), destroyService() which doesn't.
> > >
> > some , the ones I am interested in - Yes.
> > >
> > > > Do I register Jetty MBeans against another JMX
> > > Server
> > > > ? If so can I hook this into the main JBoss one ?
> > > >
> > >
> > > into jboss' jmx MBeanServer I would say.
> > >
> > > > Should JBoss-Jetty actually be this JMX Server ?
> > > >
> > >
> > > > How should we scope groups of nested services
> > > within
> > > > JBoss ?
> > > >
> > >  I am waiting for that answer two for some of my own
> > > stuff I am working
> > > on.
> > >
> >
> > If you get an answer I would be interested to hear it.
> >
> > >
> > > >
> > > > That should do it !
> > > >
> > > >
> > > > Jules
> > > >
> > > >
> >
> > Thanks,
> >
> > Jules
> >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Get email at your own domain with Yahoo! Mail.
> > > > http://personal.mail.yahoo.com/
> > > >
> > > > _______________________________________________
> > > > Jboss-development mailing list
> > > > [EMAIL PROTECTED]
> > > >
> > >
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to