-
1. Re: Pls Help: Can't find the BeanManager object from the PhaseListener
nickarls Aug 9, 2010 10:59 AM (in response to wangliyu)Which AS/Weld version? There was a lot of trouble with the JNDI names at one point. In Servlet envs it places it in the SC for quicker lookup. I think there is also an EG proposal for standardization of this.
-
2. Re: Pls Help: Can't find the BeanManager object from the PhaseListener
wangliyu Aug 9, 2010 2:28 PM (in response to wangliyu)Specification-Title: Weld Servlet module
Specification-Version: 1.0.0-CR2This is the default one in the Maven archetype, I've tested with latest TC6 and GF3, none of them working, so should I use JNDI or ServletContext lookup?
-
3. Re: Pls Help: Can't find the BeanManager object from the PhaseListener
pmuir Aug 10, 2010 6:28 AM (in response to wangliyu)In Tomcat, you need to follow the the reference guide to set up JNDI binding for the BeanManager. You then need to access it at java:comp/env/BeanManager not java:comp/BeanManager - Tomcat doesn't allow you to bind outside of the java:comp/env space :-(
For GlassFish, you should discuss on the GlassFish forum.
Have you tried using JBoss AS - we can help you with that one ;-)
-
4. Re: Pls Help: Can't find the BeanManager object from the PhaseListener
wangliyu Aug 24, 2010 1:30 PM (in response to wangliyu)In case anybody has the same question, here is the jndi name in different containers:
GlassFish3.0.1 and JBoss6.0M4: "java:comp/BeanManager"
Tomcat6.0.x: "java:comp/env/BeanManager"