[ http://jira.jboss.com/jira/browse/JBAS-603?page=history ]

Adrian Brock updated JBAS-603:
------------------------------

    Description: 
SourceForge Submitter: rodburgett .
This patch addresses housekeeping deficiencies in two 
classes from the org.jboss.system package.

The ServiceCreator class has no shutdown method but it 
does hold a reference to an MBeanServer that is 
initialized in it's constructor.  The service creator patch 
file adds a shutdown() method to null out this reference.

The shutdown method of the ServiceController walks 
through it's list of remaining deployed services, calling 
the remove() method for each one.  This approach 
truncates the normal life cycle of services and skips any 
cleanup operations that might performed in the stop() 
and destroy() methods for the service.  This patch adds 
calls to stop() and destroy() for each deployed service 
in the ServiceController.shutdown() loop.

Also, a new method is added to ServiceController, 
cleanupContext(), to perform some cleanup on a 
ServiceContext instance.  This method is called for each 
ServiceContext during the ServiceController.shutdown() 
loop.

Finally in the ServiceController, the previously empty 
postDeregister() method is updated to call the new 
ServiceCreator.shutdown() method and to null out 
references to several fields that were initialized by the 
preRegister() method.

  was:
SourceForge Submitter: rodburgett .
This patch addresses housekeeping deficiencies in two 
classes from the org.jboss.system package.

The ServiceCreator class has no shutdown method but it 
does hold a reference to an MBeanServer that is 
initialized in it's constructor.  The service creator patch 
file adds a shutdown() method to null out this reference.

The shutdown method of the ServiceController walks 
through it's list of remaining deployed services, calling 
the remove() method for each one.  This approach 
truncates the normal life cycle of services and skips any 
cleanup operations that might performed in the stop() 
and destroy() methods for the service.  This patch adds 
calls to stop() and destroy() for each deployed service 
in the ServiceController.shutdown() loop.

Also, a new method is added to ServiceController, 
cleanupContext(), to perform some cleanup on a 
ServiceContext instance.  This method is called for each 
ServiceContext during the ServiceController.shutdown() 
loop.

Finally in the ServiceController, the previously empty 
postDeregister() method is updated to call the new 
ServiceCreator.shutdown() method and to null out 
references to several fields that were initialized by the 
preRegister() method.

    Environment: 
      Component: JMX

> housekeeping in service controller and creator
> ----------------------------------------------
>
>          Key: JBAS-603
>          URL: http://jira.jboss.com/jira/browse/JBAS-603
>      Project: JBoss Application Server
>         Type: Bug
>   Components: JMX
>     Versions: JBossAS-3.2.6 Final
>     Reporter: SourceForge User
>     Assignee: Scott M Stark

>
>
> SourceForge Submitter: rodburgett .
> This patch addresses housekeeping deficiencies in two 
> classes from the org.jboss.system package.
> The ServiceCreator class has no shutdown method but it 
> does hold a reference to an MBeanServer that is 
> initialized in it's constructor.  The service creator patch 
> file adds a shutdown() method to null out this reference.
> The shutdown method of the ServiceController walks 
> through it's list of remaining deployed services, calling 
> the remove() method for each one.  This approach 
> truncates the normal life cycle of services and skips any 
> cleanup operations that might performed in the stop() 
> and destroy() methods for the service.  This patch adds 
> calls to stop() and destroy() for each deployed service 
> in the ServiceController.shutdown() loop.
> Also, a new method is added to ServiceController, 
> cleanupContext(), to perform some cleanup on a 
> ServiceContext instance.  This method is called for each 
> ServiceContext during the ServiceController.shutdown() 
> loop.
> Finally in the ServiceController, the previously empty 
> postDeregister() method is updated to call the new 
> ServiceCreator.shutdown() method and to null out 
> references to several fields that were initialized by the 
> preRegister() method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to