This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I wish to know whether a database session can be terminated earlier than web session which is binding the database session. The database session is bound to the web session upon database login by: 1. javax.servlet.http.HttpSessionBindingListener; 2. javax.servlet.http.HttpSessionBindingEvent; Both the database session and web session are set to timeout in 60 minutes. When we do an experiment to manually terminate the database session after 30 minutes, our expected result is that no record can be added to the database from the web application after 30 minutes. We test this because there is a possiblility that the database session may end earlier than web session for unknow reason. But our test result shows that record still can be added to database after 30 minutes. 1. What is the cause of this unexpected result ? 2. What is the supposed result ?