Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Java 8 in Action this week in the Java 8 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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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
 
jQuery in Action, 2nd edition
 
subject: @WebService Annotation
 
Similar Threads
basic jboss webservice naming
WebService End Point Interface:
Difference between @WebService and @WebServiceProvider
WebServiceProvider annotation
404 Error for wsdl.