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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
