Re: How can I get multiple connections when I use Oracles server side JDBC driver ?

From: FaheemRao <faheemrao_at_yahoo.com>
Date: 28 Sep 2001 16:08:29 -0700
Message-ID: <43b58913.0109281508.41624773_at_posting.google.com>


Ok you can get Multiple Connection to same database , that is no problem in any Language.

I dont know much about jave , but I know that it is very easy in C++.

So don't curse me if I say some which is not applicable in Java.:)

You just have to create a new instance of the Database Class. I am sure you can create a new instance of a Class in java and then call the
the getConnection("jdbc:oracle:kprb:");

Ok in jave where the Connection handle to database is stored , you jut have to make a new instance of that Object and that it is.

may be these few lines can help you !

Faheem Rao

prof_ambrosius_at_yahoo.de (Prof. Ambrosius) wrote in message news:<9463374e.0109260611.1949f43a_at_posting.google.com>...
> As everyone knows, one can get a connection to Oracle 8i internal JDBC
> driver by writing the Java Code
>
> // dont use defaultConnection(), deprecated
> Connection dbConnection =
> DriverManager.getConnection("jdbc:oracle:kprb:");
>
> But how can I get a NEW connection to the same source ? Multiple calls
> just return a new connection object that uses the same internal
> connection.
>
> (I want to use the really new connection for a call to a stored
> procedure that may block for a long time, while the main application
> should use the other connection for other work. )
>
> Prof.A.
Received on Sat Sep 29 2001 - 01:08:29 CEST

Original text of this message