How to use secret for user and password in Java ?

Solution In Progress - Updated -

Issue

  • We would like to store MySQL user and password into an OpenShift Secret. But how can we access those properties into Java ? Is there any example ? Does something exist in fabric8 and DeltaSpike for this ?

Environment

  • Openshift Enterprise 3.1.1
  • Java with Camel and CDI

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.