This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes how to use connection pools in wl6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "how to use connection pools in wl6.1" Watch "how to use connection pools in wl6.1" New topic
Author

how to use connection pools in wl6.1

megala raghavan
Greenhorn

Joined: Jun 01, 2003
Posts: 7
hi
In weblogic i have done the connection pool set up, from which part of my code i have to use this connection pool. in EJB code or servlet code.
do we need use this connection pool in our class to connect to database or how to use pl. help me
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
First of all you shouldn't be directly using a WebLogic Connection Pool, this is not portable across J2EE Servers. You should create and use a Datasource or TxDatasource which is backed by your WebLogic Connection Pool.
As to where you would use the Datasource... if you have determined that your application needs EJB (most do not) then the EJB Layer is where you would be looking up and using your Datasource.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
One more thing, if you are using CMP Beans then they require the use of a Datasource which will then be managed by the Container. Therefore, in the case of CMP you will never be explicitly accessing the Datasource.
 
Consider Paul's rocket mass heater.
 
subject: how to use connection pools in wl6.1
 
Similar Threads
Connection pool in struts framework
Sun one application server and connection pool
sun one app server and connection pool
Connection Pool
Using OracleOCIConnectionPool in WebLogic 6.1