File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes whether connection pool will available at the time of starting the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "whether connection pool will available at the time of starting the server" Watch "whether connection pool will available at the time of starting the server" New topic
Author

whether connection pool will available at the time of starting the server

padmakar reddy kadem
Greenhorn

Joined: Dec 24, 2007
Posts: 10
Hi,

I am able to get the connection from the connection pool and able to access the db and also i need to get the connection from the connection pool of websphere in custom class which will load at the time of starting the server.But i am not able to get the connection from the pool.
I created the datasource at the server level.
My question is can we get the connection(in custom class) from the pool at the time of starting the server.




here last statement i.e System.out.println("after ds.getConnection();"); is not printing on the console.
John Jesunamam
Greenhorn

Joined: Mar 27, 2008
Posts: 6
Assuming that code is taken from a try block. There must be an exception thrown before the print statement. So please find out and post the information about the exception.
[ March 27, 2008: Message edited by: John Jesunamam ]
padmakar reddy kadem
Greenhorn

Joined: Dec 24, 2007
Posts: 10




exception causes javax.naming.NameNotFoundException: Context: IFLMUD6DLGBLGNode01Cell/nodes/IFLMUD6DLGBLGNode01/servers/server1, name: jdbc/orcads: First component in name jdbc/orcads not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound


is it related to jar files(naming.jar,namingclient.jar,namingserver.jar).if it is where can we download these jar files.

I am able to access the web application which is deployed on the same server.Web application is successfully getting the connection from the pool.

In custom class also i am using the same datasource but not able to get the connection.
John Jesunamam
Greenhorn

Joined: Mar 27, 2008
Posts: 6
You could search for those jar files and add them to the build path. It should be there in WAS installation directory.
[ March 28, 2008: Message edited by: John Jesunamam ]
padmakar reddy kadem
Greenhorn

Joined: Dec 24, 2007
Posts: 10
Hi,

I need to set the classpath for the custom class(websphere) to use the websphere connection pool.

In websphere 6.1,at the time of creating the custom class, there is a text box for the class path.I was given the path like D:/jars,but i need to place the properties folder of websphere and some jar files(ecutils.jar,j2cImpl.jar,j2ee.jar,messagingClient.jar,naming.jar,namingClient.jar,namingserver.jar,webcontainer.jar,Properties folder)in the classpath.

How to place these jar files and properties folder of websphere in the classpath for the custom class.

Thanks,
Padmakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: whether connection pool will available at the time of starting the server