Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Encrypt Oracle Datasource Password in JBoss 5

Posted on 2012-04-02
4
Medium Priority
?
1,616 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

885 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