Heavy JavaBean (FormBean) > > Session scope > > Performance 2005-09-20 - By Gihad Galal
Back The impact of this will show when you have concurrent users browsing your page at the same time. imagine if you have 100 concurrent users and data transfer in the the order of 10KB (assume), then you have 1MB transfer in this page alone in the session. you still are using the session for other things, so it will be more than 1MB. second thing, if are persisting the session, then this will be a larger problem, because you have to commit these data into the database and retreive it from the database, which also might take considerable time. it would be better if you have it in the request and use a Value object to hold the data. this way after you finish your work on this object you can remove it from the session. that's what i think.
On 9/20/05, Jayaraman, Jayakumar <jayakumar.jayaraman@(protected)> wrote: > > Hi Guys, > > 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. > > 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. > > Could you guys share your expertise ? > > > Cheers, > > Jayakumar Jayaraman > > IT Consultant > LogicaCMG Global Delivery Center > __ ____ ____ ____ ____ _____ > LogicaCMG Pvt Ltd > Divyasree Technopolis, > 124-125, Yemlur P.O. > Off Airport Road, > Bangalore, Karnataka,India > Pin : 560 037. > T: +91 080 5194 0000 Ext. 20390 > M: +91 (0) 98456 99329 > E: jayakumar.jayaraman@(protected) > Web : www.logicacmg.com <http://www.logicacmg.com> > > > > 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. > > ==================================================================== > 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) >
-- Be Well & Good Bless
==================================================================== 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)
<div>The impact of this will show when you have concurrent users browsing your page at the same time.</div> <div> </div> <div>imagine if you have 100 concurrent users and data transfer in the the order of 10KB (assume), then you have 1MB transfer in this page alone in the session. you still are using the session for other things, so it will be more than 1MB. </div> <div> </div> <div>second thing, if are persisting the session, then this will be a larger problem, because you have to commit these data into the database and retreive it from the database, which also might take considerable time.</div>
<div> </div> <div>it would be better if you have it in the request and use a Value object to hold the data. this way after you finish your work on this object you can remove it from the session.</div> <div> </div> <div>that's what i think.<br><br> </div> <div><span class="gmail_quote">On 9/20/05, <b class="gmail_sendername" >Jayaraman, Jayakumar</b> <<a href="mailto:jayakumar.jayaraman@(protected)" >jayakumar.jayaraman@(protected)</a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0 .8ex; BORDER-LEFT: #ccc 1px solid">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: <a href="mailto :jayakumar.jayaraman@(protected)">jayakumar.jayaraman@(protected) </a><br>Web : <a href="http://www.logicacmg.com">www.logicacmg.com</a><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: <a href="http://www.corej2eepatterns.com">http://www .corej2eepatterns.com</a><br>J2EE BluePrints: <a href="http://java.sun.com /blueprints/corej2eepatterns"> http://java.sun.com/blueprints/corej2eepatterns</a><br>List Archive: <a href= "http://archives.java.sun.com/archives/j2eepatterns-interest.html">http:/ /archives.java.sun.com/archives/j2eepatterns-interest.html</a><br>Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to <a href="mailto:listserv@(protected)">listserv@(protected)</a><br>< /blockquote></div><br><br clear="all"><br>-- <br>Be Well & Good Bless ==================================================================== 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)
|
|