How to access critical sharable resources inside a JSP page?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, September 4, 2002 10:55 AM


I want to know how a ResultSet can be managed inside a JSP page, especially it is used in a multiuser environment. I found that, since the ResultSet is a sharable resource, i am getting no data found for some users. I tried STM and synchronizing methods, even these two methods fails when the no of users are more and they access a page simultaneously. Please help me out with the appropriate model. Please provide some example if possible. I even tried to do the entire data access within bean, but still it does not work.


K.Ganesh

Re: How to access critical sharable resources inside a JSP page?

Posted By:   Steven_Martin  
Posted On:   Wednesday, September 4, 2002 10:59 AM

ResultSets will only last the life cycle of the database connection. I belive that closing the statement may also clear the resultset. You should set the values into JavaBeans to then display to your users.
About | Sitemap | Contact