aspose file tools*
The moose likes Servlets and the fly likes maximum sessions exceeded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "maximum sessions exceeded" Watch "maximum sessions exceeded" New topic
Author

maximum sessions exceeded

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
i am getting maximum sessions exceeded exception when i use my webapplication for an hour continously..
what i am doing is i am trying to insert huge data into the databse.. for this i need to use sessions..
it will be problem if it gives the exception in the middle of the exection period..
so please give me some suggestions to avoid that error msg..


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

But you haven't given us any details, eg what server, what is the exact message?
magesh karnam
Greenhorn

Joined: Sep 08, 2003
Posts: 14
In general this kind of exception might come.

[LIST] If session is not removed after its usuage.
[LIST] If the session timeout is more and you are using alot of session objects without cleaning the unwanted sessions.
[LIST] Do avoid usage of session at the max. as it would slow the process of your application.
[LIST] Dont store large number of data in session, if its stored do remove it after its usage.

Hope this works out.

regards
Magesh`
Krithika Srinath
Ranch Hand

Joined: Apr 11, 2006
Posts: 52
I would recommend you to store data in transaction instead of Session for your scenario. So that at the end of the transaction, (i.e., after insert and commit) the data will be automatically destroyed.

Still, we will be in a better position to help you if you can give more details as how you have implemented in your code.

Regards,
~Krithika
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: maximum sessions exceeded