File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Connection Pooling in CMP Beans.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply locked New topic

Connection Pooling in CMP Beans..


Joined: Feb 20, 2003
Posts: 3
Hi All,
Can I use my Own Connection Pooling in CMP Beans.I am using Weblogic and Oracle as Backend.Will there be any problem as Container take care of all the things in CMP Beans?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Overall, this is a bad idea.
You might be able to get basic CMP functions to work. I'm not sure because I haven't tried. However, Container Managed Transactions(CMT) require the use of a WebLogic Tx Datasource. Likewise a Tx Datasource feeds from a WebLogic Connection Pool. Therefore, to support CMT (which you most likely will be using) then you need to use a WebLogic Connection Pool.
Just curious... why would you want your own Connection Pool implementation to back a CMP? You don't control any of the database interaction in the CMP, so why would it matter what Connection Pooling software WebLogic uses?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
One more thing...
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your profile accordingly.
I agree. Here's the link:
subject: Connection Pooling in CMP Beans..
It's not a secret anymore!