Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Heavy JavaBean (FormBean) > > Session scope > > Performance

Heavy JavaBean (FormBean) > > Session scope > > Performance

2005-09-20       - By Gihad Galal

 Back
Reply:     1     2     3     4     5  

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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</div>
<div>that's what i think.<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/20/05, <b class="gmail_sendername"
>Jayaraman, Jayakumar</b> &lt;<a href="mailto:jayakumar.jayaraman@(protected)"
>jayakumar.jayaraman@(protected)</a>&gt; 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&nbsp;&nbsp;P.O.<br>Off Airport Road,<br>Bangalore,
Karnataka,India<br>Pin : 560 037.<br>T: +91 080 5194 0000&nbsp;&nbsp;&nbsp;
&nbsp;Ext. 20390<br>M: +91 (0) 98456 99329<br>E:&nbsp;&nbsp;<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 &quot;signoff J2EEPATTERNS-INTEREST&quot; to
<a href="mailto:listserv@(protected)">listserv@(protected)</a><br><
/blockquote></div><br><br clear="all"><br>-- <br>Be Well &amp; 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)

©2008 junlu.com - Jax Systems, LLC, U.S.A.