CDI @Named used in JSF pages in JBoss EAP 6

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.