To do something like this, you need to get a reference to the object. You can do this using CDI. In CDI 1.1 you can get the CDI utility class. In CDI 1.0 you can get a reference to the bean manager using JNDI to do the equivalent. Look at this code for reference: https://github.com/apache/deltaspike/blob/master/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanProvider.java#L98
I'm curious why you're using @Named
. Are you planning to reference the EJB directly in your UI?