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 Wed, 14 Mar 2012 07:19:03 GMT
Hi,

Are you sure of your openejb-core scope?

- Romain

Le 14 mars 2012 08:14, "slawek" <s.wojciechowski@gmail.com> a écrit :

> Hello,
> In my learing I try to connect to examples together. First I have build
> lookup-of-ejbs project and tested it - it works great. Next I prepered new
> example project simple-webservice - it works fine to. But in this project I
> added simpe method, where i call ejb:
> public String zwrocTekstZEjb()
>        {
>                String tekst="";
>                 try
>                 {
>                         Context context =
> EJBContainer.createEJBContainer().getContext();
>                         Friend friend = (Friend)
> context.lookup("java:global/lookup-of-ejbs/RedBean");
>                         tekst="My friend " + friend.sayHello();
>             }
>                 catch (Exception e)
>                 {
>                    throw new EJBException(e);
>             }
>                return tekst;
>        }
>
> Unfortunetly it doesn't work. When I call ws method zwrocTekstZEjb, I got
> error:
> The bean encountered a non-application exception; nested exception is:
>        javax.ejb.EJBException: javax.ejb.EJBException: Provider error. No
> provider
> definition found while invoking public abstract java.lang.String
> my_package.zwrocTekstZEjb() with params [].
>
> So I spend few hours and I haven't idea what is wrong.
>
> Best Regards
> sw
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/ejb-from-ws-tp4470387p4470387.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

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