Hi,
I have a servlet which connects to a database; once the connection is
made I pass a connection object into another class which uses this
object to execute queries on the database.
When i run the servlet my queries are executed fine, when i try to run
the application for a second time my class executing the queries doesn't
work - it appears that it doesnt recieve the connection object properly
it bombs out at the stage
stmt = conn.createStatement();
I am creating a connention within the inint() method of my servlet.
When i re-start tomcat everything works fine again - this leads me to
believe hat i have connection caching issuse.
I have set the context param in server.xml to reloadable = true (not
sure if this makes any difference)
I am also not using a connection pool to connect to my database.
I am using tomcat v.4.0 with Java 1.4
Any advice is appreciated
Cheers
Natasha
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]