Does the session of JSP limit the capacity?

hi,all,
I write a JSP program,and I need to put many Vectors into the session.So I am eager to know whether the session has the limited capacity?If there is too much things in the session, will the performance of running be down?How could I do?Thanks!

Hi
Storing a lot of objects in Session might slow down the application depending on the load you are expecting and the resources your application server has at its disposal.
There is no definite answer , you have to look at the application requirements and scope out the variables you may have to share at various levels - application, session, request, page etc. The trick often lies in the design of the application so that you are not making a particular object too bulky.
As far as how to deal with your particular problem it is hard to say without looking at the requirements. If you have to put very large vectors/Objects into your session then you may have to rethink your design.
One suggestion here is to store the Data in Collections instead of Vectors as the Vectors are costlier in terms of processing than Collections. Collections are part of the java.util.* package.
Keep me posted on your progress.
Good Luck!
Eshwar Rao
Developer Technical Support
Sun microsystems inc
http://www.sun.com/developers/support

Similar Messages

  • I am trying to sync an ipod touch 4TH gen.  The capacity bar at the bottom shows I am adding 22.29g with 6.5 g free.  Yet every time I try to sync it warns that there is not enough room say an additional 868.9m still needed.  Does the capacity bar tend to

    I am trying to sync an ipod touch 4TH gen.  The capacity bar at the bottom shows I am adding 22.29g with 6.5 g free.  Yet every time I try to sync it warns that there is not enough room an additional 868.9m is still needed.  Does the capacity bar tend to be wrong or am I missing something?

    Well when all else fails do a restore!  This fixed my problem.  Still don't know why the content bar differed, but what the hey!

  • HT1841 How to disable some of the automatic function from my bluetooth (jabra) while iphone does not have the capacity to set up the bluetooth property like BB?

    How to disable some of the automatic function from my bluetooth (jabra) while iphone does not have the capacity to set up the bluetooth property like BB?

    Sorry. You're not making sense. Please re-phrase the question or post in your native language.

  • What is the use of session in jsp

    hai,
    what is the use of session in jsp. i cant understand from books. give some practical approach
    thanks

    give some practical approachYou sound like a supervisor ordering for a cup of coffee.
    I DONT TAKE ORDERS !!
    IMAO
    Which book did you refer ? Did you google ?

  • Does the SCAN feature in 11gR2 provide session failover?

    I setup a two-node RAC environment (11.2.0.2), and I can successfully connect to it using Single Client Access Name (SCAN). My clients' tnsnames.ora is as simple as:
    RAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cluster-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rac)
    I was told by the senior DBA that SCAN provides session failover. By that I mean: suppose there are two nodes, and I have a client establish a connection through sqlplus in another machine (client version 11.2.0.2 as well), eg:
    sqlplus system/password@rac
    I then use something like "SELECT host_name, instance_name FROM v$instance" to figure out which instance I am connected to and I shutdown that instance by running "shutdown abort" there. The expected behavior is for that client to automatically switch to the surviving node (*in the same session*).
    However, it doesn't work that way. Instead, the next SQL statement issued in that sqlplus session results in a "ORA-03113: end-of-file on communication channel." I managed to have it failover automatically, without adding anything (eg: FAILOVER_MODE) in the clients' tnsnames files by creating a service with TAF using srvctl:
    srvctl add service -d rac -s ractaf -P BASIC -m BASIC -e SELECT -z 5 -w 120
    But I have been told this step is not necessary with 11gR2, and session failover should occur automatically if I installed the grid infrastructure and set up SCAN correctly. But I haven't been able to find anything in the documentation indicating this is the case. So, does the SCAN feature in 11gR2 provide session failover?
    Edited by: 894946 on Nov 3, 2011 10:16 AM

    I think you are right because session failover is a service property linked to cluster database instances and not a scan listener feature that basically establish connection with right instance.

  • HT4972 i got my new iphone 4s , can not download the OS 5 it says error 9006 on my windows 7. also the phone does not show the capacity and serial number details on the itunes summery ?? please help

    i got my new iphone 4s , can not download the OS 5 it says error 9006 on my windows 7. also the phone does not show the capacity and serial number details on the itunes summery ?? please help

    Hi Kevin,
    The iPhone 4S comes automatically loaded with iOS 5, and any updates after iOS 5.0 can be completed directly from on the phone in Settings > General > Software Update. If you are having trouble using iTunes to update software, I suggest you reset iTunes so that you can pair your phone to the computer again, because if you can't see the serial number and capacity, that generally means your phone isn't paired.  For any problems this doesn't fix, please contact Apple directly through their automated help line, 1(800)MYAPPLE.

  • Is there a limit for the apps that i purchased or i can purchase as much i want? and how can i know the capacity it's taking? Thank you

    Is there a limit for the apps that i purchased or i can purchase as much i want? and how can i know the capacity it's taking? Thank you

    Yes you can buy whatever you want if your credit card is in good standing.
    Before you buy, read the size of the download in iTunes/App/iBook Store.
    Rule of thumb, you need to reserve about 10% of your total space.

  • Bt hub 4 does the hub reserve and limit the amoun...

    quick question....when connecting multiple computers to the hub(1 wired,3 wireless),does the hub reserve and limit the amount of bandwidth to each computer??
    thanks 
    karl

    There is no bandwidth control, but Ethernet connections tend to get priority.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Does the window which popup from parent window share the session of parent?

    I use javascript "window.open(uri, name, features, replace);" popup a window,
    does the window using the same session with parent?

    Yes.

  • Does the DOA need to be an session bean as well?

    Hi there,
    I been working in this problem for days, I am a bit confuse, I have created a session bean which contains biz logic and EAO layer,
    I understand that we can get the persistence in EJB with @PersistenceContext private EntityManager em;
    Correct me if I am wrong I am a bit sceptical to use the em in the session bean. (there been lot of arguments stated that we need to ditch the DAO)
    BUT, still I would want use EntityManager in the EAO layer because of the mobility of the DAO layer in the future.
    So I have implemented DAO design pattern at below but is not working, is giving me:
    Unable to get an Entity Manager Instance
    javax.naming.NameNotFoundException: No object bound to name java:comp/env/persistence/em
    I am so confuse, does the DAO need to be a session bean as well?
    Edited by: lizaliz on Aug 13, 2009 8:15 AM

    Using the EM in a session bean is one of the preferred ways of manageing persistence. Take a look at *'Pro EJB 3'* by Mike Keith and Merrick Schincariol. Extracts are avialable on google books - they give a good overview of using this approach.
    It is a bit weird initially as with EJB 2 you had your session beans (business tier) and your entity beans for the data tier so using a session bean seemed to conflict with what was recognised. And besides if you want to inject a Persistence Context or Factory you need to do it in a managed class - like an EJB!
    m

  • I dont understand why my ipod says it has 8gb but holds 6.36gb capacity and it always says over capacity by 35.4mb and i deleted lots of my apps but it keeps doing the same thing soo annoying .

    I dont understand why my ipod says it has 8gb but holds 6.36gb capacity and it always says over capacity by 35.4mb and i deleted lots of my apps but it keeps doing the same thing soo annoying . ANYONE KNOWS WHY?!

    I had a similar problem and after deleting endlessly...and weeks of frustration I (without even realizing what I was on to) deleted my text messages. I had been letting them add up since it seemed easier to text someone if it were readily available. Needless to say, I ended up with nearly double the space/memory available.

  • Why does the sound keep going out on my ipad? It seems to just go out in between sleep/wake sessions.

    Why does the sound keep going out on my ipad? It seems to just go out in between sleep/wake sessions.

    Hello stephiejoy,
    Thanks for using Apple Support Communities.
    The following support article will help you in resolving this issue your iPad is having with its audio.  Even though this article states it's for an iPhone, the same troubleshooting steps do apply to your iPad as well.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Take care,
    Alex H.

  • For the iPod Classic, in settings, how does the volume limit work? After setting a limit, how to re-set to a new volume limit?

    For the iPod Classic, in settings, how does the volume limit work? After setting a limit, how to re-set to a new volume limit?

    This thread - with a quote from an LR4 Beta thread - says that all 6 central Basic controls in PV2012 (Exposure thru Blacks) are now image-adaptive, as were Recovery, Fill Light, and Clarity in previous versions:
    http://forums.adobe.com/message/4253485
    Whether they are suitable for creating a Timelapse sequence without significant flicker is entirely subjective and up to you - and of course, dependant on your specific images & how they change over time.  Sorry, not much advice beyond try PV2012, and revert back to PV2010 if you get too much flicker.

  • Does the REST API offer team member capacity?

    I would like to get the capacity for all team members in a project for a sprint. The documentation does not say this is available but it may just not be documented. If its possible, which endpoint would expose this information?

    Hi lgoolsby,
    According to Visual Studio Online REST API reference on this
    page, there is no capacity for team members of a team project. You can submit a user voice
    here to request or confirm the reference.
    However, you can view team members' capacity on team web access directly. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • When does the JSP get regenerated!!

    Hi,
    Can anyone please tell me When does the JSP get regenerated!!
    Thanks in advance
    SP
    [att1.html]

    Answered on interest.jsp
    (please don't cross post)
    mbg
    =============================================================
    "SP" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    Can anyone please tell me When does the JSP get regenerated!!
    Thanks in advance
    SP

Maybe you are looking for

  • Error message when opening iTunes after updating Windows 8.1

    I recently updated my windows software to 8.1.  Now I am getting a message that iTunes stopped responding and must close.  I tried to uninstall and reinstall iTunes but that has not fixed the problem.  I cannot get iTunes to open.  There is no error

  • [SOLVED]VMware wont open

    I have successfully installed vmware, and was previously getting the modual build dialog, i successfully patched and ran vmware-modconfig --console --install-all, all moduals built successfully, i had since installed firefox and now vmware will not r

  • Original document for foreign currency valuation.

    Hello All, I have executed the foreign currency valuation run and posted the documents through batch job. System has successfully created and posted foreign currency document. When I am checking the posted document I found there is some wrong posting

  • ADF: select one choice binding ???

    how i can bind "select one choice" ADF faces ,,, i tried to bind it from List<String> , List<SelectItem> and also Properties ,, nothing work ! an error accurod "java.lang.ClassCastException" or "java.lang.NullPointerException" when i bind it to Prope

  • No selected set is assigned to the class characteristic

    Hi PP-PI guys, I am encountering this error while i am trying to make master inspection characteristics. I want to link MIC to batch class characteristics. Can you please explain how to assign selected set to class characteristic.