Easybeans and CXF

View: New views
2 Messages — Rating Filter:   Alert me  

Easybeans and CXF

by okanovicsm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?

Re: Easybeans and CXF

by okanovicsm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


So stupid of me. Should read manuals with more care.
LightInTheBox - Buy quality products at wholesale price!