There might be another way, but one way is to have your beans implement the KernelControllerContextAware interface, and use the passed in
AFAIK, this interface is not finalized yet though:
...and use the passed in KernelKontrollerContext
I need access to the Kernel instance from a jboss deployment interceptor.
I want to refactor my web service deployment interceptors such that they deploy to the ServiceEndpointManager that now is a POJO registered with the microcontainer. I have no idea how I get the ServiceEndpointManager from the kernel.
Note, the WS deployment interceptors are not MC managed beans, so I cant inject ServiceEndpointManager, right?
Maybe I asked the question incorectly.
Looking at JBossBeanDeployment it looks like there is a Kernel per *.beans deployment. I assumed there was a global Kernel instance in jboss