Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-20 Thread Tim Bain
For anyone following along at home, the StackOverflow post for this new error is at https://stackoverflow.com/questions/44653347/ejb-client-context-selector-may-not-be-changed . On Tue, Jun 20, 2017 at 8:23 AM, aragoubi wrote: > Unfortunaltely, this doesn't solve my problem. > Now, Now when I tr

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-20 Thread aragoubi
Unfortunaltely, this doesn't solve my problem. Now, Now when I try to get EJB I am getting this*: Stopping MQTTSocket_890308146 because Failed with SecurityException: EJB client context selector may not be changed*. I think that this is related to the fact that I am connecting to jboss server from

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-11 Thread Tim Bain
So I believe your question boils down to the following: When a webapp deployed to JBoss contains jetty-all.jar, the Jetty classes cause the default InitialContext to be created as a Jetty class. How can I get a JBoss InitialContext instead, to allow lookups of EJBs exposed by JBoss? Can you try s

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-11 Thread aragoubi
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 = n

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-10 Thread Tim Bain
Can you please provide the link to the question you posted to the JBoss forum? I've never used EJBs or JNDI (which is why I'm trying to help you post your question in a place where people who know those technologies will see it), but I notice that your lookup doesn't match how your bean is being e

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-09 Thread aragoubi
This is the topic in stackoverflow https://stackoverflow.com/questions/44392545/get-ejb-object-inside-rar-deployed-inside-jboss/44393205?noredirect=1#comment75871624_44393205

Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-08 Thread Tim Bain
Can you please provide links to those other discussions, so that we can take them into account when responding here? On Jun 8, 2017 6:50 AM, "aragoubi" wrote: > I have an activemq broker deployed within my jboss server. > activemq is deployed as a rar file placed into jboss standalone/deployment

Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb

2017-06-08 Thread aragoubi
I have an activemq broker deployed within my jboss server. activemq is deployed as a rar file placed into jboss standalone/deployment repository. An other project is also deployed within my jboss as an ear file. This last is exposing some ejb objects. I tried to get an ejb inside a jar file p