• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

My page always need click reload to connect database

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

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.

Here is some code I write:

1. context.xml

2. web.xml

3. connection pooling class

Any response I really appreciate it.
What are you doing in my house? Get 'em tiny ad!
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic