Exposing an EJB as a REST service packaged in an EAR module (no WAR)
I'm new to Java RESTful development and I need to implement some REST services on top of my existing 3.1 EJBs.
I have an existing enterprise app consisting of ejb-jar and some other banners packaged in EAR and deployed in Wildfly 10.
I've seen many examples where a WAR module is used and a class is used javax.ws.rs.core.Application
. I am aware of the use of type annotations Path
, etc. In my resource classes.
But my question is, can I create these REST services from existing EJBs without using a WAR? I would like to leave my modules unchanged (EAR with ejb-jar only).
Thank you very much.
+3
source to share
No one has answered this question yet
Check out similar questions: