RiazKhanmohamed
Programmer
- Oct 30, 2002
- 115
I have a 3 tier architecture on a booking system I am developing in jsp/java/oracle. my database layer has multiple database mapper classes per table type, and a single connectionmanager class which each connects through.
However, I cannot kill a connection. my middle tier (problem domain) has no generic connection. each individual function creates an new instance of the database mappers required, runs processes, then closes, dropping the instances of the classes. However, it would appear that from the time I login, regardless of what I do, I have a single connection open to oracle that every function shares, until the connection times out on the server.
I have tried con.close() functions within the mappers that I run at the end of functions in the problem domain, but they fall over, saying that the connection is closed before it even runs the query 4 lines prior.
Any ideas/suggestions would be grand. the main problem this causes is that whoever connects to the system via the server uses this single connection because it just stays there. So if the connection times out, it's not just that user who is affected, but everyone.
I'm using JRUN because I can't get apache to work on my current system, but I don't believe it's related to this. However I will investigate anyway.
I look forward to any response that may solve this pain.
However, I cannot kill a connection. my middle tier (problem domain) has no generic connection. each individual function creates an new instance of the database mappers required, runs processes, then closes, dropping the instances of the classes. However, it would appear that from the time I login, regardless of what I do, I have a single connection open to oracle that every function shares, until the connection times out on the server.
I have tried con.close() functions within the mappers that I run at the end of functions in the problem domain, but they fall over, saying that the connection is closed before it even runs the query 4 lines prior.
Any ideas/suggestions would be grand. the main problem this causes is that whoever connects to the system via the server uses this single connection because it just stays there. So if the connection times out, it's not just that user who is affected, but everyone.
I'm using JRUN because I can't get apache to work on my current system, but I don't believe it's related to this. However I will investigate anyway.
I look forward to any response that may solve this pain.