File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Connection Pooling in Websphere V3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Connection Pooling in Websphere V3.0" Watch "Connection Pooling in Websphere V3.0" New topic

Connection Pooling in Websphere V3.0

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Related Details :
1.For one Project, WebSphere Application Server V3.0 is used.
2.In this version, Connection Pooling is managed as follows:
a. Configure the Database driver for Informix in the Server.
b. Configure the DataSource for Informix database in the Server.
The above two tasks were accomplished.

c. In the code, use JNDI to get the DataSource Object(defined in Java2.0 Standard Extension API ).
d. From this object, we get the connection.

A NullPointerException was thrown when trying to get the connection from the DataSource
object. There was no API Docs available and the relevant methods where such exceptions could be thrown could not be found.

Efforts made:
Using java.lang.Reflect, the methods of the underlying class of the DataSource Object were
got. In one of those methods, getLogWriter() which returns a PrintWriter object gave a
null pointer exception. It was found out that the setLogWriter(PrintWriter) is used to
provide a PrintWriter object that would write the error log details to the error log file.
We could not determine whether we should provide this object or the server will provide it.
The documentation and the sample application on Connection Pooling did not provide any detail in this regard.
The work stalled here. Could any one help us regarding this.

Thanks a lot
I agree. Here's the link:
subject: Connection Pooling in Websphere V3.0
It's not a secret anymore!