• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service Endpoints in Web service.

 
Rahul Ba
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a question. Why it is not considered as good idea of having Stateful session bean rather than Stateless session bean.
Please explain me.

Thanks in advance,
Rahul
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I guess it is because if you had a stateful session bean implement a service endpoint, then a new stateful session bean would have to be created for each individual client. This does not scale well, so having stateless session beans implement service endpoints is a better idea.
By the way, as far as I can tell (and I have been wrong regarding this question earlier), only stateless EJBs can be service endpoints.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic