XML : Adding datasource in weblogic 12c

Is there a way to add datasource using xml file in weblogic instead of adding it manually through console. Something like this:

  <Resource name="DS_WFMT_DATA" auth="Container"          type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"          url="jdbc:oracle:thin:@10.81.34.8:1526:wfmtswvu"          username="wfmt_data" password="sa1dview"          maxActive="150" maxIdle="20" maxWait="10000"          removeAbandoned="true" removeAbandonedTimeout="300" logAbandoned="true" />            <Resource name="DS_DIRECTSTAFFWARE" auth="Container"          type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"          url="jdbc:oracle:thin:@10.81.34.8:1526:wfmtswvu"          username="swpro" password="staffpro1"          maxActive="150" maxIdle="20" maxWait="10000" logAbandoned="true"/>            <Resource name="DS_NIMS" auth="Container"          type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"          url="jdbc:oracle:thin:@10.75.105.167:1521:nimsc"          username="nims" password="nims123"          maxActive="20" maxIdle="10" maxWait="10000"          removeAbandoned="true" removeAbandonedTimeout="120" logAbandoned="true"/>    

I know when I add data source, there is an xml file generated in respective domain in path domains\base_domain\config\jdbc but that happens to contain an encrypted password. Therefore when I tried to add new data source using xml file generated from adding datasource manually , that could not be added. Any help will be appreciated.

No comments:

Post a Comment