File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

Connection Pooling in Websphere V3.0

Anonymous
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.

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.

Thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Pooling in Websphere V3.0
 
Similar Threads
connection pooling in websphere
Informix driver for VAJ EJB Server
Transaction EJB session bean
~~ Newbie question - database ~~
Connection Closed Errors