Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle -> Java -> Oracle without creating new connection
Hi there!
I am using an Oracle stored procedure to call a java class. I want this class to access the Oracle database that called it. I use the following line of code to get the connection:
Connection cn = DriverManager.getConnection("jdbc:default:connection")
Now, this works, but (I suppose) this creates a new connection. Can I get, somehow, the original connection that called the java class? This could be a lot quicker? Possibly not consuming connections from the connection pool?
Thanks in advance for any help. Received on Thu Oct 19 2006 - 06:44:37 CDT
![]() |
![]() |