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.
>
|