aspose file tools*
The moose likes JDBC and the fly likes How can i use weblogic Connection pool? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How can i use weblogic Connection pool?" Watch "How can i use weblogic Connection pool?" New topic
Author

How can i use weblogic Connection pool?

Thummalashankar Reddy
Greenhorn

Joined: Feb 08, 2007
Posts: 21
Hi Friends,

How Can i use the weblogic pooling system in my application.
That means i want to use the connection pool of weblogic which is used by the weblogic to maintain the server.
Is it possible? If yes could you please give me the clear picture..How can i proceed.

Thanks
T. Shankar Reddy
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

As far as I know, app servers (like WebLogic) don't write their own connection pooling code. They use the connection pool of the driver.

You could instantiate an OracleConnectionPool (or the equivalent for your database) and use that.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kiran Joshi
Ranch Hand

Joined: Sep 04, 2005
Posts: 54
I think you can definately do this.
goto weblogic console & define a connection pool.You can find it under services.Then create a datasource & map it to this connection pool.give a JNDI name to you datasource.
Now you can get this datasource using the given JNDI name through your code.

doing something like this

Context myContext = new InitialContext();
ds = (javax.sql.DataSource) myContext.lookup("Enter JNDI name given to data source here");
Connection con = ds.getConnection();
[ February 22, 2007: Message edited by: Kiran Joshi ]
Thummalashankar Reddy
Greenhorn

Joined: Feb 08, 2007
Posts: 21
Thank you very much.

I got it.
Bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i use weblogic Connection pool?