• Post Reply Bookmark Topic Watch Topic
  • New Topic

why web service cannot be implemented by statefull EJB?  RSS feed

 
giuseppe astarita
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why a web service cannot be implemented by statefull EJB?
Thanks for answer..
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!