Vladimir Blagojevic wrote:

> Hey,
>
> On Tue, 10 Apr 2001, Julian Gosnell wrote:
> > JBoss kicks off a JettyService (this IS configured in
> > jboss.conf and DOES comply with JBoss' lifecycle
> > interface).
> >
>
> Aha so you already have JettyService, cool, I wasnt aware of that if you
> can beleive it.
>
> > JettyService kicks off a JettyMBean which subsequently
> > kicks off e.g. HttpListeners, WebApplicationContexts
> > etc which are all MBeans. All are part of the inner
> > workings of Jetty and have nothing to do with JBoss,
> > thus are NOT configured in any JBoss file.
> >
> > However, Seeing as Jetty is a Service running within
> > JBoss they may be considered subcomponents of JBoss
> > and it would therefore be nice to be able to reach
> > them from the JMX Agent page, see what they are doing
> > and alter settings on them if you so need.
> >
>
> Ok so using MBeanServer callback methods in your
> JettyService MBean(getObjectName or preRegister) save reference to
> MBeanServer.  When you load your Jetty MBeans register them with
> MBeanServer (mbeanserver.registerMBean()) under say "Jetty" domain so you
> can expose them nicely.
>
> Is this the right direction?

It is - and I have already done this. Every Jetty MBean that registers
against the JBoss MBeanServer gets init() called on it
(JBoss_2_2_0_Final)
as if it was a JBoss style MBean, resulting in an Exception.

init() must be a JBoss thing, because valid Jetty MBeans function fine
without it.

So, If JBoss does not expect 3rd party MBeans to register with it's
MBeanServer - where should I register them to get them connected to the
JBoss JMX Agent ?

If JBoss does expect 3rd party MBeans to register with it's MBeanServer,
then it should not mandate the JBoss style lifecycle, simply use it if
the
MBean implements it and leave it alone if it doesn't.

So does it - or not ?

Anyone ?

Or have I completely misunderstood ?



Jules


>
>
> Vladimir
>
>
> > --- danch <[EMAIL PROTECTED]> wrote:
> > > Have you tried putting the jetty <mbean> stuff in
> > > jboss.conf rather than
> > > jboss.jcml? I believe (but I'm not a JMX expert)
> > > that the Service
> > > (init,start,stop,destroy) only applies to mbeans
> > > listed in jboss.jcml,
> > > not those in jboss.conf.
> > >
> > > Julian Gosnell wrote:
> > > >
> > > > Greg has released JettyJMX, a packaged which
> > > > integrates with Jetty in order that all major
> > > > components of Jetty become MBeans.
> > > >
> > > > I have been integrating this into jboss_jetty, so
> > > that
> > > > Jetty is now listed by the JMX agent as a
> > > collection
> > > > of services, all with published interfaces,
> > > instead of
> > > > one megalithic service.
> > > >
> > > > I have a problem !
> > > >
> > > > JBoss seems to expect MBeans registered with it's
> > > JMX
> > > > Server to support a JBoss-inspired life-cycle
> > > > init()/start()/stop()/destroy().
> > > >
> > > > Jetty MBeans support a different lifecycle which
> > > has
> > > > no init() method.
> > > >
> > > > 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.
> > > >
> > > > I would like internal Jetty services to be
> > > available
> > > > to JBoss users via JMX. However these internal
> > > > services should be managed by Jetty, not JBoss (I
> > > > don't expect someone else to come in and call
> > > > lifecycle methods on objects I own...)
> > > >
> > > > Can this be done ?
> > > >
> > > > Do I register Jetty MBeans against another JMX
> > > Server
> > > > ? If so can I hook this into the main JBoss one ?
> > > >
> > > > Should JBoss-Jetty actually be this JMX Server ?
> > > >
> > > > How should we scope groups of nested services
> > > within
> > > > JBoss ?
> > > >
> > > > That should do it !
> > > >
> > > > 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
> > > Confidential e-mail for addressee only.  Access to
> > > this e-mail by anyone else is unauthorized.
> > > If you have received this message in error, please
> > > notify the sender immediately by reply e-mail
> > > and destroy the original communication.
> > >
> > >
> > > _______________________________________________
> > > 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/
> >
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-development
> >

_________________________________________________________
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