File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @WebService Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@WebService Annotation" Watch "@WebService Annotation" New topic

@WebService Annotation

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


Is the @WebService Annotation only applicable to Stateless beans? If yes why not we use it for Stateful beans? Please help friends!

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Yes, the WebService annotation is for Stateless beans only. I cant tell why, but I'd guess that you don't need to maintain state for web services beans.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: @WebService Annotation
It's not a secret anymore!