The one thing I notice is that the string you're trying to look up doesn't exactly match any of the names your log says the bean is exposed as. I don't know enough about EJBs, JNDI, and JBoss to know if that's significant.
Your question is about JBoss and JNDI not ActiveMQ, so you'll probably have better luck asking it on the JBoss mailing list. Tim On Jun 2, 2017 8:06 AM, "aragoubi" <aymen....@gmail.com> wrote: Hi Tim, TokenAuthentificationBroker is a class used to intercept the client connection to get the username(The token for me). It's the same thing as MyBroker class here http://activemq.apache.org/interceptors.html <http://activemq.apache.org/interceptors.html> . Within the addConnection function, I get the client userName(the token), and then I try to get an EJB exposed by an project deployed as an ear into my jboss. I need the EJB to verify the token. Yes it's my code, and until now I am trying just to get the EJB from the addConnection funtion which is in a jar placed into the activemq rar deployed within my jboss server. -- View this message in context: http://activemq.2283324.n4. nabble.com/Getting-jboss-ejb-in-ativemq-rar-deployed-within-jboss- tp4726930p4726936.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.