Statefull session bean and JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Benjamin_Mogensen
Posted On:   Tuesday, September 17, 2002 03:15 AM


I have a statefull session bean that fethes some data, the data is shown i a table in a JSP page, to each row in the table you can push a button and get detailed information about the data. This detailed information has to be fetched from the staefull EJB. My problem is that the sum of all the data is about 10Mb, and when multible clients use the page the JVM runs out of memory. I have to call the remove method on the EJB, but if I do that i can not get the detailed information, because the bean has been deleted.


How do I secure that clients can get the detailed information and still get the bean removed.

Re: Statefull session bean and JSP

Posted By:   Lasse_Koskela  
Posted On:   Tuesday, September 17, 2002 05:44 AM

You *could* configure the Stateful SessionBean to have a small maximum number of instances. Your JVM wouldn't crash, but your simultaneous users' requests might time-out.


I wonder why do you need a stateful bean? Have you double-checked if there would be any way of using some read-only/mostly pattern with caching and leaving EJB out of it completely?

About | Sitemap | Contact