wood burning stoves 2.0*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Stateful EJB as WebService 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 » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Stateful EJB as WebService" Watch "Stateful EJB as WebService" New topic

Stateful EJB as WebService

Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 77

I am new to EJB. Could anyone help me for below case:

SEI as below:

SIB as below:

But I am getting compilation error as:
If a class is part of ejb-jar and annotated @WebService, then it must designated as Singleton or Stateless session bean. Someone please explain.

Thanks and Regards, Souvik
Frits Walraven
Creator of Enthuware JWS+ V6

Joined: Apr 07, 2010
Posts: 1627

A Stateful Session Bean cannot expose a WebService (only a Singleton Session Bean or Stateless Session Bean)
Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 77

Got it.

Thanks Frits.
I agree. Here's the link: http://aspose.com/file-tools
subject: Stateful EJB as WebService
Similar Threads
Webservice created using CXF is not working
using webservice
java extend in web services
Question on EJB based Webservice - Unable to run WSGEN against session bean
Need Help Deploying EJB as a Web-Service (Exam Objective 3)