Bugs item #721418, was opened at 2003-04-15 00:14
Message generated for change (Comment added) made by juhalindfors
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=721418&group_id=22866

Category: JBossServer
Group: v3.2
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Rod Burgett (rodburgett)
Assigned to: David Jencks (d_jencks)
Summary: Housekeeping missing in ServerImpl.java

Initial Comment:
The primary server class, 
org.jboss.system.server.ServerImpl, performs 
incomplete clean-up as JBoss shuts down.  Specifically, 
the life thread continues to run and not all MBeans are 
removed from the MBean server.

The attached patch file contains several updates, each 
is described below.

The controller, config and server mbeans were registered 
in doStart() but never unregistered.  A new method is 
added to ShutdownHook, remove MBeans(), to 
unregister these mbeans and release the MBeanServer.  
ObjectNames for the server and config were available to 
the hook, but the controller ObjectName was lost when 
doStart() returned.  A new instance variable for controller 
object name is added to the ServerImpl for use at clean 
up time.

The 'JBoss Life Thread' was an anonymous thread that 
was started in doStart() and never stopped.  A reference 
to the thread is now kept in the ServerImpl instance.  
doStart() now instantiates and starts a new LIfeThread, 
while shutdown() interrupt it.  The LifeThread class 
definition is made an inner class, since it is no longer 
anonymous.



----------------------------------------------------------------------

>Comment By: Juha Lindfors (juhalindfors)
Date: 2003-08-09 20:16

Message:
Logged In: YES 
user_id=175239

Ported to 4.0.0 DR3


----------------------------------------------------------------------

Comment By: David Jencks (d_jencks)
Date: 2003-04-17 19:53

Message:
Logged In: YES 
user_id=60525

Applied (with slight modifications) to 3.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=721418&group_id=22866


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to