Solved

Encrypt Oracle Datasource Password in JBoss 5

Posted on 2012-04-02
4
1,581 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
Problem to Alipay 10 48
Email query results in HTML 6 31
How to configure empty element in XML Document parser? 15 36
Checking for column width 8 29
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to recover a database from a user managed backup
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 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