activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb
Date Sun, 11 Jun 2017 04:20:41 GMT
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 exposed.

Your lookup is: Ctx.lookup("ejb:Hemis/HemisCoreClient//"+
"HardwareDataManagement" + "!" +
"com.ubiant.hemis.client.ejb.interf.I_HardwareDataManagement");

Your bean is being exposed
as: java:global/Hemis/HemisCoreClient/HardwareDataManagement!com.ubiant.hemis.client.ejb.interf.I_HardwareDataManagement

What happens if you adjust your lookup to use that JNDI name (i.e. add
"global/" at the beginning and delete the extra slash where there are two
in a row)?


On Jun 9, 2017 8:23 AM, "aragoubi" <aymen.rag@gmail.com> wrote:

> This is the topic in stackoverflow
> https://stackoverflow.com/questions/44392545/get-ejb-
> object-inside-rar-deployed-inside-jboss/44393205?
> noredirect=1#comment75871624_44393205
> <https://stackoverflow.com/questions/44392545/get-ejb-
> object-inside-rar-deployed-inside-jboss/44393205?
> noredirect=1#comment75871624_44393205>
> .
>
> I tried to get the exposed ejb from the rar without using jetty(I added
> jetty-all jar in order to use websocket) and I am getting access to jboss
> exposed EJBs from the activemq deployed rar.
> But when I am adding jetty jar, it's looking for ejb inside jetty
> jndi(org.eclipse.jetty.jndi.local.localContextRoot.lookup in stacktrace).
> Normaly, it should look for ejb inside "org.jboss.ejb.client.naming" as I
> am
> defining itt inside the context properties :
>
>  Context ctx;
>   Properties jndiProps = new Properties();
>   jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
>   jndiProps.put("jboss.naming.client.ejb.context", true);
>
>
>
>
>
> --
> 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-tp4727190p4727279.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message