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.
PROBLEMS: --------- 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.