problem with bean with scope session
Hello
I use several beans in a jsp program.
But, after about 10 or 15 access to this bean, it seems that the system "lose" the bean and obviously I can't access to these bean anymore.
I think that I should "reniew" the session but I don't know how.
Thanks
Cdric
[307 byte] By [
agilbull] at [2007-9-26 6:46:30]

> But, after about 10 or 15 access to this bean, it
> seems that the system "lose" the bean and obviously I
> can't access to these bean anymore.
Very strange...
May you explain what you are doing with this bean? with what (JSP ? servlet ?) ?
and some questions:
- Do you have this problem when only one user is connected to the application or when more than one user is connected ?
- Do you have a null value in return ?
dnav at 2007-7-1 16:10:40 >

It seems that it happens both with 1 or more users.
My beans are just suposed to acces to a data base and to keep the values. Both of them are lists of other beans.
I use those beans in jsp. It is a program to manage people who want to wrok in my society.
Thanks
Cedric
One of two things are happening here - either you are creating a new bean at some point or a new session is somehow being created. I am assuming you set the scope on the bean to session? Check that you are calling the bean with the same id in every page, and that the scope is set to session in every page. If that is ok, check that you are not somehow getting a new session by printing out the session id in every page. I seem to remember we had a problem with this using iPlanet awhile back but I can't remember what was causing the new session to be created..