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 WebMethod and statefull session bean 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 "WebMethod and statefull session bean" Watch "WebMethod and statefull session bean" New topic

WebMethod and statefull session bean

Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

As per my understanding only stateless session beans can be exposed as web services.

However in one of the mocks i have come across that @webmethod can be applied on method of a statefull session bean , Is this allowed ??
Graeme Jenkinson

Joined: Sep 08, 2008
Posts: 27
Only a stateless session bean may provide a web service client view

ejb-3_0-fr-spec-ejbcore.pdf, p40
I agree. Here's the link:
subject: WebMethod and statefull session bean
It's not a secret anymore!