I am using sql server and tomcat for my web application
To refresh/clean my database i have to close tomcat for successful cleanup
Is there any way using java that i can clean my database without closing tomcat
I am using sql server and tomcat for my web application To refresh/clean my
Share
You can kill external connections to your database using:
When you are done your cleanup:
Now, what happens to the users who try to access the application during this time, and how tomcat reacts, <shrug>. Seems a lot cleaner to just shut tomcat down, depending on what you want the users to see during cleanup.