Solved

Encrypt Oracle Datasource Password in JBoss 5

Posted on 2012-04-02
4
1,577 Views
Last Modified: 2013-12-29
HI

I am hosting my java based application on RHEL based server and Jboss 5 application server and using Oracle RAC as backend.  I am keeping my datasource information in deploy/oracle-ds.xml file and password is also stored in plain text formant.

Please suggest procedure to keep the datasource password in encrypted form.  Here below are extract of oracle-ds.xml file:

<datasources>
  <local-tx-datasource>
    <jndi-name>OracleDS</jndi-name>
                <connection-url>
jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=ORACLE_SERVER_HOSTNAME)(port=1521))(connect_data=(server=dedicated)(service_name=DB_SERVICE_NAME)))
                </connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <user-name>ORACLE_USER</user-name>
    <password>ORACLE_PASSWORD</password>
    <min-pool-size>0</min-pool-size>
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
  </local-tx-datasource>
0
Comment
Question by:ashuji
4 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 37826423
it is described quite good in the https://community.jboss.org/wiki/EncryptingDataSourcePasswords There is a section for jboss 5.x there
0
 

Author Closing Comment

by:ashuji
ID: 37827087
Exact solution pointed.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 49
Component is listed with a Protocol more than once 3 29
Oracle Verification of DataPump Export and Import 17 56
Email query results in HTML 6 18
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video shows how to recover a database from a user managed backup
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question