tags:

views:

896

answers:

1

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

A: 

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.

Loki