TomcatExpert

Retrieving Inner Oracle Connections

posted by SpringSource on May 21, 2010 01:11 PM

Using DBCP or the connection pooling built into the Oracle JDBC driver implementation.

You should just be able to cast to the DBCP specific Connection class and from there retrieve the inner Oracle connection:

import org.apache.commons.dbcp.DelegatingConnection;
 
DelegatingConnection dc = (DelegatingConnection)conn;
OracleConnection oc = (OracleConnection)pc.getInnermostDelegate();

Note: If you are using Tomcat's built-in copy of DBCP then the import you will need is:

import org.apache.tomcat.dbcp.dbcp.DelegatingConnection;

Or you can use the connection pooling built into the Oracle JDBC driver implementation. This returns an Oracle connection. A simple setup would be:

<Resource auth="Container"
          connectionCacheName="CXCACHE"
          connectionCacheProperties="{MaxStatementsLimit=5,MinLimit=1, MaxLimit=1, ValidateConnection=true}"
          connectionCachingEnabled="true"
          description="Oracle Datasource"
          factory="oracle.jdbc.pool.OracleDataSourceFactory"
          name="jdbc/TestDB"
          user="default_user" 
          password="password"
          type="oracle.jdbc.pool.OracleDataSource"
          url="jdbc:oracle:thin:@//localhost:1521/orcl"
          />

For more than 10 years, SpringSource employees have been supporting Apache technologies, with unparalleled experience and commitment to the Apache Software Foundation. More than 400 of the Fortune 500 count on SpringSource to support their mission-critical business applications. Leaders of the Apache Software Foundation, including Board Members, work at SpringSource and dedicate a significant amount of time further developing the Apache Tomcat open source project. Over the last 2 years, 95% of the issues fixed in the Apache Tomcat project were fixed by SpringSource engineers. For more information on how SpringSource can help your enterprise, see the SpringSource website, or call 800/444-1935.

Comments

RE:

Post very nicely written, and it contains useful facts. I am happy to find your distinguished way of writing the post.

Best essay writing service

I like to recommend

I like to recommend exclusively fine plus efficient information and facts, hence notice it: หารายได้เสริม

I really enjoy simply reading

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful. www.onlinecheats4u.com

For many people this is the

For many people this is the best solution here see how to do it. Folding Solar Panels

great news

Wow! This could be one particular of the most helpful blogs We’ve ever arrive across on this subject. Basically Excellent. I’m also an expert in this topic therefore I can understand your effort.
voyance en direct

Sometime the user of iTunes

Sometime the user of iTunes try to get some iTunes gift card code to avoid incovenience that they may be having when listening to their saved playlist at itunes.

xfdtsrh

Thanks for showing this awesome post APP download and click and click and click and click and click

Retrieving Inner Oracle Connections

We are retrieving inner oracle connections with great tips for tom cat experts. So we can easily understood the urgent custom essays articles from the website. That's really amazing to everyone of this blog, and thank you.

Jual Laptop Notebook PC HP Lenovo Printer Tinta Toner Epson Mura

Which will feature short-term, still it’s not just a effective long-term alternative designed for men of all ages who wish to result in being this particular 1 completely unique lover these consumers can’t finish entertaining the idea of. jual HP Spectre

David

Swiftly this web site can unquestionably become popular between almost all blogging and site-building folks, due to its meticulous posts or perhaps critiques. http://sgseo.co/financial-advisor-seo/

David

buy twitter accounts I just genuinely gain knowledge of yuor web blog for the purpose of working assessments in addition to I just genuinely at present get to look that is why invited. I just genuinely were to choose from a job to try a for a wonderful craft creating business enterprise in addition to Images staying away from these products. It could be at present, with mind-set you probably talented families, Let me test it. get more plays on soundcloud

You have shared a very

You have shared a very informative blog about retrieving the oracle inner connections. It is really very helpful for me. This site always shares very important topics like this. I also understood about Oracle JDBC driver implementation. Keep updating blogs. zip line brake

jhon

Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog. Divorce law tax attorney

DSASDASD

jimmy choozxx1A
the north face outlet
red valentino
michael kors
louis vuitton sacs
cheap jordan shoes
rolex replica watches
michael kors handbags outlet
ed hardy
jordan shoes
cheap jordans
nike blazer
ralph lauren pas cher
adidas nmd
gucci borse
fitflops shoes
nike outlet store
michael kors handbags online
nike free 5
nike roshe
converse trainers
true religion jeans sale
adidas nmd
omega watches for sale
michael kors handbags wholesale
michael kors handbags
cheap basketball shoes
longchamps
michael kors outlet
michael kors handbags wholesale
cheap nfl jerseys wholesale
instyler max 2
nike huarache trainers
ed hardy outlet
pandora charms
michael kors handbags sale
tiffany and co outlet
lebron shoes
longchamp le pliage
skechers outlet
lebron james shoes
abercrombie and fitch
michael kors handbags
michael kors handbags
michael kors handbags
nike store uk
asics shoes
pandora jewelry
michael kors handbags
nike huarache
cheap mlb jerseys
cheap ray ban sunglasses
cheap nhl jerseys
jimmy choo shoes
nike store
michael kors outlet store
nike tn
michael kors outlet
michael kors outlet
toms shoes
cheap nike shoes
michael kors handbags
michael kors outlet
yeezy boost 350 black
michael kors handbags
michael kors handbags
polo ralph lauren
toms outlet
sac longchamp
fitflops sale clearance
michael kors uk
mlb jerseys
kobe 9
michael kors uk
nike air max 90
christian louboutin outlet
cheap michael kors handbags
nike blazer pas cher
cheap michael kors handbags
saics running shoes
ecco shoes outlet
ralph lauren outlet online
michael kors handbags
nike outlet
nike trainers uk
ghd hair straighteners
new balance outlet
hugo boss outlet
supra shoes
nba jerseys
nike air huarache
ralph lauren outlet
polo ralph lauren outlet
nike blazer low
michael kors outlet store
nike trainers uk
hugo boss sale
armani exchange
fitflops
air jordan uk
cheap jordans
michael kors handbags
tiffany and co
supra shoes sale
michael kors handbags
dolce and gabbana
cheap nike shoes sale
new balance shoes
nike air force 1
michael kors handbags wholesale
omega watches
nike trainers
gucci sito ufficiale
michael kors outlet online
salomon boots
armani exchange outlet
michael kors handbags
yeezy boost 350
christian louboutin shoes
nike huarache
instyler max
nike tn pas cher
valentino shoes
nike trainers
ed hardy clothing
under armour outlet
michael kors handbags
fitflops sale clearance
nike free
michael kors handbags
michael kors handbags
cheap oakley sunglasses
oakley sunglasses
salomon shoes
cheap oakley sunglasses
oakley sunglasses
ghd flat iron
michael kors handbags
the north face
chaussure louboutin
cheap oakley sunglasses
michael kors handbags
pandora outlet
michael kors handbags
salvatore ferragamo
moncler outlet
converse shoes
nike blazer pas cher
true religion jeans
adidas nmd r1
louis vuitton pas cher
ray ban sunglasses
jordan shoes
mont blanc pens
michael kors handbags wholesale
replica watches
ecco shoes
ralph lauren
ray ban sunglasses
michael kors handbags outlet
abercrombie and fitch kids
michael kors handbags clearance
cheap ray bans
longchamp bags
oakley sunglasses
versace
ed hardy uk
pandora jewelry
mont blanc pens outlet
cheap nfl jerseys
michael kors outlet
dolce and gabbana shoes
basketball shoes
nike huarache
michael kors outlet
nike air huarache
michael kors outlet
versace shoes
air force 1 shoes
cheap michael kors handbags
michael kors handbags outlet
michael kors outlet
cheap nba jerseys
under armour shoes
ferragamo shoes
adidas nmd runner
michael kors handbags
nike blazer
reebok shoes
michael kors handbags wholesale
skechers shoes
chaussure louboutin pas cher
dolce and gabbana outlet
michael kors handbags
michael kors outlet online
cheap michael kors handbags
birkenstock sandals
air max 90
michael kors outlet clearance
birkenstocks
nike roshe run
yeezy boost 350 white
reebok outlet
moncler jackets
michael kors handbags sale
kobe 9 elite
nhl jerseys
michael kors handbags
michael kors outlet

work

Great post however , I was wanting to know if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Bless you!
Real Musically Followers, like and fans for free

cleaning services in dubai

To start with there is another thing you must learn when you happen to be cleaning concrete that is certainly that tangible cannot be restored for you to its virgin mobile state after many experts have stained. You could always find stains brighter or bleached nevertheless completely removing it is rather difficult. So when actually talking to a buyer explain this for many years otherwise they shall be asking for the job that cannot be accomplished unless your entire concrete piece is attractive up along with re-poured. cleaning services in dubai

XENDER FOR PC

great post
Very good for file and picture share To PC To any Phone
NICE ARTICLE THANKS FOR SHARING
xender for pc

XENDER FOR PC

Great post
Very good for file and picture share To PC To any Phone
NICE ARTICLE THANKS FOR SHARING
xender for pc

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.