I need SLSB to be CXF web service and to access entity EJBs. I wrote SLSB class
and interface and annotated it as both @Statelss and @WebService. There is also
one entity EJB.
I pack all of these into war archive, together with cxf-servlet.xml file inside
WEB-INF and persistence.xml file inside META-INF. persistence.xml refers to
jdbcpool defined inside my easybeans.xml.
I put this war inside tomcat/webapps, together with easybeans-cxf-war-1.0.1.war
(this war has my easybeans.xml). There is no error during deployment.
Web service is accessible, but I EntityManager (injected with
@PersistenceContext ...) is always null.
What am I doing wrong?