2

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

Cody Guldner
  • 2,888
  • 1
  • 25
  • 36
Kong
  • 98
  • 1
  • 5

1 Answers1

5

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:

Community
  • 1
  • 1
Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332