REST is just HTTP, usually implemented with servlets, so it is naturally added to the WAR file, which may or may not be packaged in an EAR with EJB.
I don’t think EJBs know or care about SOAP or REST. EJBs use RMI as their communication protocol.
source
share