tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: ejb from ws
Date Fri, 16 Mar 2012 08:32:35 GMT
Hi,

if you paste your logs and the lookup you did i think we can manage to make
java:global working

- Romain


2012/3/15 slawek <s.wojciechowski@gmail.com>

> Hello,
>
> The problem is solved. I call ejb from other application using code:
> Properties p = new Properties();
>                p.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.core.LocalInitialContextFactory");
>                p.put("openejb.loader", "embed");
>
>                 try
>                 {
>                                Context ctx = new InitialContext(p);
>                                Friend friend = (Friend)
> ctx.lookup("RedBeanLocal");
>                                wynik=friend.sayHello();
>              }
>                 catch (Exception e)
>                 {
>                    throw new EJBException(e);
>             }
> The main problem was to set properties and put it to IndexContext
> constructor. It works, but still i can't call ejb using java:global.....
> syntax.
>
> Best Regards
> sw
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/ejb-from-ws-tp4470387p4475747.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

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