wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@WebService Annotation" Watch "@WebService Annotation" New topic
Author

@WebService Annotation

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Guys,

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: http://aspose.com/file-tools
 
subject: @WebService Annotation
 
Similar Threads
Difference between @WebService and @WebServiceProvider
WebService End Point Interface:
basic jboss webservice naming
404 Error for wsdl.
WebServiceProvider annotation