Hi

So I'm noticing when CDI.current().getBeanManager() is called, it returns a
new InjectableBeanManager instance.  I have a custom OWBListener (
https://github.com/hammock-project/hammock/blob/master/bootstrap-owb2/src/main/java/ws/ament/hammock/bootstrap/owb/OWBListener.java)
which handles the lifecycle references in the servlet container.  I don't
want to start the application, because its already been started by the SE
container so my custom version doesn't do that.

However, I've noticed that the underlying BeanManager is not the same as
the one used by the SE initialization.  Is this on purpose?  Is there
something special that has to be done so that the underlying
BeanManagerImpl on WebBeansContext.getInstance().getBeanManagerImpl()
returns the one created via SE?

John

Reply via email to