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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content