I'm trying to inject a remote stateless session bean in a message driven bean.
I've been looking this post: How to inject a Session Bean into a Message Driven Bean?
The Session Bean and the Message Driven Bean are in two diff.
Here an exemple of what i've tried to inject my EJB :
@EJB(beanName="TraitementBeanRemote")
private TraitementBeanRemote traitementBeanRemote;
The application throws a NamingException :
javax.naming.NamingException: Lookup failed for '#com.generator.traitement.TraitementBeanRemote' in SerialContext
My environement : Netbeans 7.4 / Glassfish 4.0
Does someone have any idea about that?