Stateful session bean & stateless session bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   johnny_G
Posted On:   Tuesday, October 22, 2002 03:36 AM


I've developed a system with one huge session bean and lots of entity beans, It all works fine no matter I set up the session bean with stateful or stateless config. So how should I decide which one should I use?



and If my client side(JSP) enter a page and make no action for a specific time,then I'll have exception when I do the action on the page, I have to re-enter my system then everything is fine, is it because my session bean passivated? can I avoid it?

Re: Stateful session bean & stateless session bean

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, October 22, 2002 04:45 AM

Hi,

Well, to understand the difference between a Stateful and a Stateless Session EJB, take a look at these FAQs:

- What is a stateful session bean?

- What is a stateless session bean?


Is not a good practice to develop the so called "god beans", that is big huge session beans that do everything. There are many reason to avoid this, for example to increase development productivity, and avoiding bloated session beans.

I would suggest to rearchitect your design and try to divide the functions among different beans.

About | Sitemap | Contact