So your Main is in a webapp? if so isit deployed in tomee? if yes it
should be available if not adding openejb-client in classpath should
be fine.

Side note: your jta datasource name is not good, should just be the id
of the resource.

Finally the name should be either java:global one or
PersonneFacadeRemote (you can check it in tomee logs on lines
Jndi(...))
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-02 18:45 GMT+02:00 ttran <[email protected]>:
> I also created an META-INF/ejb-jar.xml too:
>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";
>          version="3.0">
>   <enterprise-beans>
>     <session>
>       <ejb-name>PersonneFacadeImpl</ejb-name>
>
> <business-local>com.training.domain.ejb.facade.PersonneFacadeLocal</business-local>
>
> <business-remote>com.training.domain.ejb.facade.PersonneFacaderemote</business-remote>
>
> <ejb-class>com.training.domain.ejb.facade.impl.PersonneFacadeImpl</ejb-class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Container</transaction-type>
>     </session>
>   </enterprise-beans>
> </ejb-jar>
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Problem-to-create-initialContext-tp4668512p4668518.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to