Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
padmakar reddy kadem
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic