Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

splitting of an XML file

Status
Not open for further replies.

smajety

Programmer
Oct 27, 2004
1
US
I have the following data source entry in my tomcat. We have a requirement which means we have to take out the user name and password properties from this file and store them in a separate file which is with a secure group and I need to access these properties from that file , rest of the properties remain with the original file. How do I do that?


<Resource name="jdbc/ntrdwDS-primary" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/ntrdwDS-primary">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:eek:racle:thin:mad:192.168.77.52:1521:twadev</value>
</parameter>
<parameter>
<name>username</name>
<value>user</value>
</parameter>
<parameter>
<name>password</name>
<value>password</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
<parameter>
<name>accessToUnderlyingConnectionAllowed</name>
<value>true</value>
</parameter>
</ResourceParams>


Thanks,

SM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top