Subject | Re: [firebird-support] Two Jars one connection pool |
---|---|
Author | Mark Rotteveel |
Post date | 2014-12-13T09:10:22Z |
On 12-12-2014 22:32, Łukasz Bączek baczeklu@... [firebird-support] wrote:
If these 'library' jars are used within a single application, then they
can use the same connection pool. You need to configure (or code) them
to use the same `DataSource`, how that is done really depends on the
environment and how these jars are used.
If these jars are two separate applications (executed separately), then
they cannot use the same connection pool.
Mark
--
Mark Rotteveel
> I have two separate library jar that will connect to the database usingQuestions regarding Java should be posted to the Firebird-Java mailinglist.
> the connection pool.
>
> But how do these two libraries to connect to a single connection pool.
If these 'library' jars are used within a single application, then they
can use the same connection pool. You need to configure (or code) them
to use the same `DataSource`, how that is done really depends on the
environment and how these jars are used.
If these jars are two separate applications (executed separately), then
they cannot use the same connection pool.
Mark
--
Mark Rotteveel