• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maximum sessions exceeded

 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But you haven't given us any details, eg what server, what is the exact message?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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`
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic