| 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
|
 |
 |
|
|
subject: why web service cannot be implemented by statefull EJB?
|
|
|