File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes why web service cannot be implemented by statefull EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "why web service cannot be implemented by statefull EJB?" Watch "why web service cannot be implemented by statefull EJB?" New topic
Author

why web service cannot be implemented by statefull EJB?

giuseppe astarita
Greenhorn

Joined: Nov 10, 2005
Posts: 11
why a web service cannot be implemented by statefull EJB?
Thanks for answer..
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Because web services are inherently stateless (for scalabilty purposes).
So any "state data" would have to be submitted together with any request. That of course doesn't stop the underlying service from correlating state information to a client or processing ID that is part of the request. Sun could have simply defined a protocol for SFSBs to include a SFSB ID in the request and response - but they didn't; probably to sidestep scalability issues. So state needs to be managed either at the client or the service level but not on the component level.
[ November 18, 2005: Message edited by: Peer Reynders ]

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
IntelliJ Java IDE
 
subject: why web service cannot be implemented by statefull EJB?
 
Threads others viewed
can statefull session bean be exposed as a web service
service locator pattern
Caching Resources in EJB(Service Locator Pattern)
ServiceLocator in Petstore??
SCDJWS-REST/SOAP Web services
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture