I am trying to learn how to use Web Services. I have been reading this link , but I don't understand the difference between Implement and Not Implement Web Service as a Stateless Session Bean
The @Stateless
annotation turns the POJO into an EJB and it gives all the EJB features .
The big difference is that EJBs runs in a full featured Java EE 5+ Web Application Server like GlassFish or JBoss, making it unusable in a Servlet Container like Tomcat or Jetty.
More info:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.