Heavy JavaBean (FormBean) > > Session scope > > Performance 2005-09-21 - By Jayaraman, Jayakumar
Back Thanks a lot for the information. Cheers, Jay
-- --Original Message-- -- From: An interest list for Sun Java Center J2EE Pattern Catalog [mailto :J2EEPATTERNS-INTEREST@(protected)]On Behalf Of R Riluvan Sent: Tuesday, September 20, 2005 4:25 PM To: J2EEPATTERNS-INTEREST@(protected) Subject: Re: Heavy JavaBean (FormBean) >> Session scope >> Performance
"I would like to know the effect of adding a heavy form bean in session scope of a JSP. Heavy bean means lets assume, around 200 fields of data type String is in the bean." -- there is session serialization consequences, measure the size of the bean when no values populated and when if it is fully populated.
-- Is this risking unnecessorily caching of values which might not be needed accross session.
-- Keep the session size to be optimal.
We are thinking of one single bean for a entire module, instead of multiple beans to avoid plenty of codes to transfer data from one bean to other bean. -- This will be like mixing apple and orange in one basket. You could use components such as beanutils from apache to populate values from one bean to another, provided taken care when naming of accessor methods in the form beans.
-- Managing such bean would be complex, also would affect scalability of the form bean.
---- Rizwan
__ __
From: "Jayaraman, Jayakumar" <jayakumar.jayaraman@(protected)> Reply-To: An interest list for Sun Java Center J2EE Pattern Catalog ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|