Hi!
A web service can be implemented either as a POJO or as an EJB. Also note that WAR files and EJB JAR files may be part of an EAR.
Thus, a web service can be deployed in a WAR, in an EJB JAR or in an EAR.
Best wishes!
Don't get me started about those stupid light bulbs.