Curious...Can one define and access a JAX-RS EJB defined within an
EJB.jar without a WAR *explicitly* defined to provide the web tier?
I have been experimenting with the various JAX-RS deployment options
in JavaEE 6. I've tried
1) WARs with POJO resource classes
2) WARs with EJB resource classes and no EJB.jar
3) EJB.jar with EJB resource classes wrapped with a WAR+EAR
Option #2 allows one to have EJBs with an EJB.jar and EAR -- neat.
With Option #3, my WAR was no more than a handful of near-empty files.
The beans.xml and web.xml files where likely not even needed.
|-- jaxrs-ejb-dmv-ear6-war
| |-- META-INF
| `-- WEB-INF
| |-- beans.xml
| |-- classes
| `-- web.xml
The biggest need I had for the WAR was that it defined the
context-root of the resource URIs
//EAR application.xml
...
<module>
<web>
<web-uri>jaxrs-ejb-dmv-ear6-war-1.0-SNAPSHOT.war</web-uri>
<context-root>jaxrs-ejb-dmv-ear6</context-root>
</web>
</module>
//example URI call
http://127.0.0.1:8080/jaxrs-ejb-dmv-ear6/rest/dmv
I know SOAP-based Web Services implemented with EJB have definitions
that allow the EJB to fully define the service without physically
declaring a WAR. Does JAX-RS have the same sort of convention? Can one
define and access a JAX-RS EJB defined within an EJB.jar without a WAR
explicitly defined to provide the web tier? If so, how would I define
the context-root from the EJB?
thanks,
jim
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Resteasy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/resteasy-users