in tomee there are 2 providers: openejb and tomee

specify EJBContainer.PROVIDER to openejb  if you are on the snapshot
or org.apache.openejb.OpenEjbContainer for the 1.0.0 release.

Note: not sure that's the right way to do, why not using @WebServiceRef ?
it is (IMO) far better for such a purpose

- Romain


2012/8/13 membersound <[email protected]>

>         @PostConstruct
>         private void config() {
>                 Properties properties = new Properties();
>                 properties.setProperty("openejb.embedded.remotable",
> "true");
>                 EJBContainer.createEJBContainer(properties);
>         }
>
> This seems to be a problem. My goal is to call a (remote) webservice method
> on a buttonclick.
> If I run this code on a Java-App client, it works just fine.
>
> But using PostConstruct within a Servlet throws Exception:
>
> javax.servlet.ServletException: javax.el.ELException:
> javax.ejb.EJBException: Provider error. No provider definition found
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:229)
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Access-Named-bean-via-EL-Expression-tp4656844p4656848.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to