Tuesday, March 15, 2011

Seam JNDI injection

How do you inject a JNDI value in Seam? I read that you can use @Resource or @JndiInject, but it is not working.

From stackoverflow
  • If you don't need to have an EJB as a Seam component, just use the standard InitialContext().lookup("something").

    If you want to use an EJB that can be accessed from JNDI and to be able to use it as a Seam component, then its more complicated. See this.

0 comments:

Post a Comment