I had a look at this on the train this morning.

Scott is right.

In 2.2.2 any MBean registering is presumed to be a
JBoss Service and JBoss takes over it's lifecycle,
calling init(), start(), stop() and destroy() whenever
it deems necessary. This is pretty disastrous for
internal Jetty MBeans, which unfortunately have
methods of the same name, which would rather have
their lifecycles managed by Jetty !

On the Main CVS line, MBean Services must now
explicitly register() if they want JBoss to manage
their lifecycles.

I shall try to do a new JBoss-2.2.2-Jetty release this
evening, in which externalisation of internal Jetty
MBeans will be pulled, awaiting a JBoss release which
supports them - a shame, but I doubt it will actually
affect anyone...


Thanks to everyone who has reported this problem,


Jules

--- Scott M Stark <[EMAIL PROTECTED]> wrote: >
Neither trace 3 or 4 are correct as they originate
> from the org.jboss.util.ServiceControl
> class. Looking at the 2.2 branch I see the change in
> service life-cycle management
> I mentioned was not incorporated into that release
> and this is the problem. If there
> is enough demand a 2.2.3 release could be made. The
> 2.4 release beta will start
> tomorrow.
> 
> ----- Original Message ----- 
> From: "David Castro-Diephouse"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 20, 2001 8:52 PM
> Subject: Re: [JBoss-user] jboss-jetty problem -
> stack traces
> 
> 
> > Here are 4 stack traces:
> > 1. From ServiceControl.handleNotification,
> registering an MBean for the 
> > HttpServer.
> > 2. From ServiceControl.handleNotification,
> registering an MBean for the 
> > WebApplicationContext.
> > 3. HttpServer.start calls start on the
> WebApplicationContext.
> > 4. JMX starts up my WebApplicationContext a second
> time.  (this is 
> > probably what you are looking for Scott)
> > 
> > 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

Reply via email to