tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkriszti <kriszti.ko...@gmail.com>
Subject Re: JAX-RS integration with managed beans
Date Sat, 05 May 2018 12:53:56 GMT
Hi,

I see, thank you!

I have fixed my REST app!  Tested solution on
 - apache-tomee-jaxrs-1.7.4
 - apache-tomee-webprofile-7.0.2
 - WebSphere Platform 8.5.5.11 [ND 8.5.5.11 cf111649.01] [IBMJAVA7 7.0.9.60
cf111647.02]

I got rid of the @javax.annotation.ManagedBean annotation and added the
@javax.enterprise.context.RequestScoped to my root resource class and
@javax.enterprise.context.ApplicationScoped to my
javax.ws.rs.core.Application sub-class.

I also read this:  Implement JAX-RS resources with different lifecycle
scopes
<https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.0.0/com.ibm.websphere.nd.doc/info/ae/ae/twbs_jaxrs_jcdi_lifecycle.html>
 


Regards,
Krisztina



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Mime
View raw message