I didn't get response from jboss forum.

Actually, I tried differents ways, and I finally get it working only if I
remove the jetty-all jar(remove ws connector).
Without jetty, it is looking for my jndi in the right place.  

I am defining the jndi properties like this : 
  Properties jndiProps = new Properties(); 
  jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); 
  ctx = new InitialContext(jndiProps); 

The jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
is supposed to tell JNDI to create an InitialContext from the classes in the
specified package, but it's not working.
Those classes have the knowhow to lookup names in the ejb: namespace.

But when I add the jetty all jar in order to use websocket, I get this
(org.eclipse.jetty.jndi.local.localContextRoot.lookup in stacktrace) which
means that henceforth it's looking in jetty jndi.





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Adding-activemq-jetty-all-jar-for-using-ws-doesn-t-allow-me-anymore-getting-jboss-exposed-ejb-tp4727190p4727304.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to