• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stateful session EJB 3 question

 
Marx Villegas
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,
are stateful session EJBs still a heavy-weigth object that one should avoid in designs?
Please correct me if I'm wrong, but it seems to me that stateful session beans are way lighter in EJB 3.0 than 2.X.
Thanks in advance...
XM
 
Marx Villegas
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any thoughts anyone?
 
Horst Naujoks
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the advice to avoid stateful session beans does't come from their cognition as "heavy weigth" objects. The true problem with sfsb is that they introduce higher demands on application servers in a clustered environment (transfering "state" from on server to another for the sake of failover, loadbalancing, etc.).
In my opinion, even with EJB3 it's still essential to carefully think about their usage.
 
Marx Villegas
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sounds reasonable...
Thanks
Marx
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marx,

The question whether to include stateful session beans in our design, was raised many times in this forum; many people are very determined to be on one side or the other.

Horst and many other fellows are reluctant to use stateful session beans, because of practical implementation issues that different application servers had and have with these beans.

However, as an architect you need to factor into your decision, the benefits of a particular technology and weigh it against the current/past implementation problems.

Personally, I think that Sun would be delighted to see stateful session beans in your design, whenever it's appropriate, and it's definitely appropriate in certain places in our solution.

Regards,
Dan
 
Marx Villegas
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I'll surely use 'em in my assignment. I was only very keen to know if the discussion was still valid for the lighter EJB3.
Thanks for your comments.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic