Re: connection on application initialisation
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 14:25:15 GMT
"polilop" <fmatosic@xxxxxxx> wrote in message
news:ehn0jd$j6b$1@xxxxxxxxxxxxxxxxx
it says on the given link
If you are using a J2EE Server, you should be able to access a connection
pool via >JNDI and retreive the a connection. If you are not using a J2EE
Server, you can >download (or write) a connection pool, and install it
into your JSP/Servlet >application, and share it via the application
space.
dose this mean that when i make a datasource (with JNDI) and call
datasource.getConnection(); i am getting a con from the pool not
establishing con to the database?
http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/DataSource.html
<quote>
The DataSource interface is implemented by a driver vendor. There are three
types of implementations:
1. Basic implementation -- produces a standard Connection object
2. Connection pooling implementation -- produces a Connection object that
will automatically participate in connection pooling. This implementation
works with a middle-tier connection pooling manager.
3. Distributed transaction implementation -- produces a Connection object
that may be used for distributed transactions and almost always participates
in connection pooling. This implementation works with a middle-tier
transaction manager and almost always with a connection pooling manager.
</quote>
In other words, it depends on your drivers.
- Oliver
.
- Follow-Ups:
- Re: connection on application initialisation
- From: Arne Vajhøj
- Re: connection on application initialisation
- References:
- connection on application initialisation
- From: filip
- Re: connection on application initialisation
- From: Oliver Wong
- Re: connection on application initialisation
- From: polilop
- connection on application initialisation
- Prev by Date: Stopping Oracle stored procedure from the Java code
- Next by Date: Hibernate get vs load
- Previous by thread: Re: connection on application initialisation
- Next by thread: Re: connection on application initialisation
- Index(es):
Relevant Pages
|
|