jbossas/jboss-as — pull request #3081 by marschall (2012-09-19 19:40:56+00:00)
Title: AS7-5584 Naming context read-only during SAR deployment

During the #start() #stop() method of a legacy SAR the naming context
is read only. The problem seems to be that
org.jboss.as.service.AbstractService.invokeLifecycleMethod(Method) only
sets the thread context class loader and does not do
WritableServiceBasedNamingStore.pushOwner.

- change AbstractService#invokeLifecycleMethod to take an additional
LifecycleContext argument
- update CreateDestroyService to pass the context
- update StartStopService to pass the context

https://issues.jboss.org/browse/AS7-5584