Solved

Encrypt Oracle Datasource Password in JBoss 5

Posted on 2012-04-02
4
1,585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

734 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