Add the following entry to data-sources.xml
<data-source
class=”com.evermind.sql.DriverManagerDataSource”
name=”jdbc/Oracle”
location=”jdbc/OracleCoreDS”
xa-location=”jdbc/xa/OracleXADS”
ejb-location=”jdbc/OracleDS”
connection-driver=”oracle.jdbc.driver.OracleDriver”
username=”scott”
password=”->PwdForScott”
url=”jdbc:oracle:thin:@incq245ac.idc.oracle.com:1521:V10UTF8″
inactivity-timeout=”30″/>
Then add the following entry to jazn-data.xml
<user>
<name>PwdForScott</name>
<display-name>PwdForScott</display-name>
<description>Scott’s
password</description>
<credentials>!tiger</credentials>
</user>
Restart the OC4J and checked the jazn-data.xml
You will the following With password Encrypted.
<user>
<name>PwdForScott</name>
<display-name>PwdForScott</display-name>
<guid>82D9DA218DD411DBBF9ADBCC94167DAD</guid>
<description>Scott’s
password</description>
<credentials>{903}Say314L4or3AWmsUFg/Glf2L/6GFrqqi</credentials>
</user>