File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maximum sessions exceeded

 
saikrishna cinux
Ranch Hand
Posts: 689
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you haven't given us any details, eg what server, what is the exact message?
 
magesh karnam
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic