Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Behaviour of Global Temporary Table In HTTPSession(Java Servlet or JSP)
Hi
I have a web application which is deployed on Tomcat. For Oracle
Database
transactions, I am using Connection Pooling to get a Connection to my
Database.
First i open fetch a connection from the pool inside a JSP/Servlet, then
i call a
Oracle Stored Procedure(using the Java CallableStatement) which performs
the
processing and then populate a global temporary table. After the
execution of the
CallableStatement, i run a simple SELECT statement to display the
results.
Afterwards i release the connection to the pool.
I am currently under the impression that the data will persist untill my
HTTPSession of JSP gets
expired, but when i reload the JSP that i may get a different Connection
object(Because of the
Connection Pooling) and when i do run the same SELECT statement on the
temporary table i
may get different or no results.
Any inputs would of help.
Thanks
Arun
Received on Sun Mar 31 2002 - 21:28:08 CST