Hi Thomas ,
Thank you for your valuable help. Still I have a doubt..I guess you can help
me.
In the peice of code you send used DataSource , if it is class  then where
can I get the package..otherwise it gives compilation error. As per my
understanding if I use this piece of code in Java source file I will need
the DataSource class for compilation. I am not using any EJB
functionality..just in servlet.
waiting for your reply
Ujjwal
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: JRun-Talk <[EMAIL PROTECTED]>
Sent: Wednesday, December 06, 2000 1:20 PM
Subject: Re: Connection Pooling ----JRun3.0


>
>
> Use this:
>
> String data_string ="java:comp/env/jdbc/thinPool";
> DataSource ds = (DataSource)ctx.lookup(data_string);
> Connection con = ds.getConnection();
>
> Thomas Kirsch
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to