Skip to main content

accessing EJB which is also a JSF managed bean from JSF xhtml file

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2007-04-16

what is the right way to use a jsf xhtml page to access an ejb which is also a managed bean for JSF ?

in the javaee6tutorial trunk download at

in example jaxrs/Customer they have 2 beans.
a CustomerManager bean annotated @Stateful @Named
and a CustomerBean annotated @Named @Stateless.

The index.xhtml jsf page accesses #{customerManager.customer.firstname} and other fields.

But each time the #{customerManager.customer.xxxx} expression is evaluated a new Customer is created in the