How can I have a database connection use the user and password from the logged in user ?

Solution Verified - Updated -

Issue

  • We want connections to the database done with the username and password for the currently logged in user.
  • How to assign the id of the user logged in my application to an oracle (for instance) database connection?

Environment

  • JBoss Enterprise Application Platform (EAP) 5, 6

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