Hello Experts,
I'm sure lot of you might have already answered thi question many a times but recently I've come across a interesting scenrio and hence need help.
I was working on a application using DFC at backend, Adobe Flex at front end technology and Spring as web app container. So obivious requirement was to manage Sessions, so we devloped one usersession class having a session manager, considering i injected superuser session thru spring.
Now, when a dctm suer logins, we create a instance of wrapper class and fill it with one session manager and from that session manager, i'll go all getSession, releaseSession. Now, the interesting part starts.
I've one scenrio where user can perform simultaneous operation (Threads). So i need to give new Session to every simultaneous operation else threads does not execute in parallel (Interesting ).
So i started calling newSession instead of getSession on SessionManager object. This Call occupies most of teh sessions and repository sessions limit is exhauted. Now in my application these operation happens every 5-10 secs so every 5-10 secs, I'll exhaust all sessions.
Need a solution experts.