How to encrypt database password in repository.xml file for JBoss BRMS 5.3.x?

Solution Verified - Updated -

Issue

We are using another database as an external RDBMS (e.g. Postgres). Cleartext credentials are currently used in repository.xml, as the following example shows:

    <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
      <param name="driver" value="org.postgresql.Driver"/>
           <param name="url" value="jdbc:postgresql://localhost:5432/BRMS"/>
           <param name="user" value="MY_USER"/>
           <param name="password" value="MY_PASSWORD"/>
      <param name="schema" value="postgresql"/>
      <param name="schemaObjectPrefix" value="Versioning_PM_" />
    </PersistenceManager>
  • How to encrypt database password in this file ?

Environment

  • JBoss Enterprise Business Rules Management System (BRMS) 5.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content