if I understand your question correctly, you don't wanna all the sessions
share this dbase object, right? in this case, you shouldn't declare dbase
as a variable member in the servlet class, coz it's shared by every access
to the instance of the servlet. in other words, it's not right to declare
the object as a variable member and create it once in the init() method ...
you have to create one such kind of object for each session...
----Original Message Follows----
From: "Ozkan, Ejber" <[EMAIL PROTECTED]>
Hi
I have an object that has several hash tables within it.
i create the object like so
public void init(ServletConfig conf) throws ServletException {
super.init(conf);
dbase = new dBaseObject(url);
}
I have some hash tables inside it like so
dbase.tableRows
If I have more than one new connection /session the dbase.tableRows hash
values ,get written over by the
previous session.
I understand that basiclly need to .putValue of the object into the
individual session to stop this from happening.
any ideas how?
Should I remove it from the init ,check for a new session and then create
the dbase object ?
pass the object or store the object somehow.
Is there away to force each new session to have there own new dbase or
anyother new object for that matter within its own confines.
Any pointers greatly appreciated.
Thanks
Ejber Ozkan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html