• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

stateful session EJB 3 question

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any thoughts anyone?
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sounds reasonable...
Thanks
Marx
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic