CDI @Named used in JSF pages in JBoss EAP 6
Issue
- In our Seam apps, we had EJBs:
@Named("exampleBean")
@Stateful
public class ExampleBeanImpl implements ExampleBeanLocal
...
And in our xhtml, we referenced it like so:
#{exampleBean...}
But apparently that doesn't make sense in CDI (#{exampleBean can't be found in JNDI). So, what is a good convention?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.x
- Context and Dependency Injection (CDI)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.