My page always need click reload to connect database
posted 4 years ago
I developed my web app in Windows environment and need to deploy it on Linux, but i get a problem in database connection.
My web page is not connected with database automatically each time onload, we must click "Reload/Refresh" in web browser to get connected with the database.
I have no idea what's wrong since it work well in my laptop on localhost which is Windows.
Can you tell me any suggestion to solve this problem? I use connection pooling to my database in MySQL. I developed the application using Struts framework, and deploy it in Tomcat server through JBoss.