tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Tomcat config - query
Date Mon, 26 Jul 2004 12:53:07 GMT
Hi,
Once you can the DataSource reference via JNDI, you could cast it
explicitly to your DBCP class, and call the DBCP API methods to obtain
all the information you want about the pool, including the URL and such.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: shyamw.yawale@wipro.com [mailto:shyamw.yawale@wipro.com]
>Sent: Monday, July 26, 2004 8:48 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Tomcat config - query
>
>
>Hi,
>   I am using tomcat4.1.30 with oracle 8.0i . I have one query regards
>to tomcat configuration file. I  want to read datasource name and
>connection url from the config file without parsing  config
>file(parser). Is there any way to read config data using some API using
>java. Is there any API available  with tomcat catalina.Can you please
>help me out by providing sample code/snippets?
>
>
>regards,
>shyam
>
>
>
>
>Confidentiality Notice
>
>
>The information contained in this electronic message and any
attachments to
>this message are intended
>for the exclusive use of the addressee(s) and may contain confidential
or
>privileged information. If
>you are not the intended recipient, please notify the sender at Wipro
or
>Mailadmin@wipro.com immediately
>and destroy all copies of this message and any attachments.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message