jbossas/jboss-as — pull request #3157 by stuartwdouglas (2012-10-01 22:35:55+00:00)
Title: [7.1] 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