Heavy JavaBean (FormBean) > > Session scope > > Performance 2005-09-20 - By R Riluvan
Back <html><div style='background-color:'><DIV class=RTE> <P><FONT size=2>"I would like to know the effect of adding a heavy form bean in session scope of a JSP.<BR>Heavy bean means lets assume, around 200 fields of data type String is in the bean."<BR>-- there is session serialization consequences, measure the size of the bean when no values populated and when if it is fully populated. </FONT></P> <P><FONT size=2>-- Is this risking unnecessorily caching of values which might not be needed accross session. </FONT></P><FONT size=2> <P>-- Keep the session size to be optimal.</P> <P><BR>We are thinking of one single bean for a entire module, instead of multiple beans to avoid<BR>plenty of codes to transfer data from one bean to other bean.</FONT><BR>-- 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.</P> <P>-- Managing such bean would be complex, also would affect scalability of the form bean.</P> <P>---- Rizwan<BR><BR></P></DIV> <DIV></DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma ,sans-serif"> <HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>"Jayaraman, Jayakumar" <jayakumar.jayaraman @(protected)></I><BR>Reply-To: <I>An interest list for Sun Java Center J2EE Pattern Catalog <J2EEPATTERNS-INTEREST@(protected)></I><BR >To: <I>J2EEPATTERNS-INTEREST@(protected)</I><BR>Subject:   ;<I>Heavy JavaBean (FormBean) >> Session scope >> Performance</I><BR >Date: <I>Tue, 20 Sep 2005 12:37:21 +0530</I><BR>MIME-Version: <I>1.0</I><BR>Received: <I>from swjscmail2.java.sun.com ([192 .18.99.108]) by mc7-f5.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 20 Sep 2005 00:17:59 -0700</I><BR>Received: <I>from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 84C0421B80; Tue, 20 Sep 2005 01:17:45 -0600 (MDT)</I><BR>Received:  ; <I>from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8e) with spool id 74540212 for J2EEPATTERNS-INTEREST@(protected); Tue, 20 Sep 2005 01:17:40 -0600</I><BR >Received: <I>from rly01e.srv.mailcontrol.com (cluster-e.mailcontrol .com [217.79.216.190]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 7432F498F for <J2EEPATTERNS-INTEREST@(protected)>; Tue, 20 Sep 2005 01 :07:38 -0600 (MDT)</I><BR>Received: <I>from smtp1.cmg.com (smtp1.cmg .com [195.109.155.100]) by rly01e.srv.mailcontrol.com (MailControl) with ESMTP id j8K77nU2028838; Tue, 20 Sep 2005 08:07:49 +0100</I><BR>Received: <I>from c2-ex001.groupinfra.com ([10.0.2.14]) by smtp1.cmg.com (8.12.9/8.12.3) with ESMTP id j8K76Coq081503; Tue, 20 Sep 2005 09:07:48 +0200 (CEST) (envelope -from jayakumar.jayaraman@(protected))</I><BR>Received: <I>from in -ex002.groupinfra.com ([158.234.200.107]) by c2-ex001.groupinfra.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 20 Sep 2005 09:07:36 +0200</I><BR>Received: <I>from in-ex001.groupinfra.com ( [158.234.200.12]) by in-ex002.groupinfra.com with Microsoft SMTPSVC(6.0.3790.211 ); Tue, 20 Sep 2005 12:37:22 +0530</I><BR>Hi Guys,<BR><BR>I would like to know the effect of adding a heavy form bean in session scope of a JSP.<BR>Heavy bean means lets assume, around 200 fields of data type String is in the bean.<BR><BR >We are thinking of one single bean for a entire module, instead of multiple beans to avoid<BR>plenty of codes to transfer data from one bean to other bean. <BR><BR>Could you guys share your expertise ?<BR><BR><BR>Cheers,<BR><BR >Jayakumar Jayaraman<BR><BR>IT Consultant<BR>LogicaCMG Global Delivery Center<BR >__ ____ ____ ____ ____ _____<BR>LogicaCMG Pvt Ltd<BR>Divyasree Technopolis,<BR >124-125, Yemlur P.O.<BR>Off Airport Road,<BR>Bangalore, Karnataka,India<BR>Pin : 560 037.<BR>T: +91 080 5194 0000 Ext. 20390<BR>M: +91 (0) 98456 99329<BR>E: jayakumar.jayaraman@(protected)<BR>Web : www.logicacmg.com<BR><BR> <BR><BR>This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.<BR><BR>=============================== =====================================<BR>Companion Site: http://www .corej2eepatterns.com<BR>J2EE BluePrints: http://java.sun.com/blueprints /corej2eepatterns<BR>List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html<BR >Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <BR></FONT></BLOCKQUOTE></div></html> ==================================================================== 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)
|
|