Configuring a DataSource Connection

  1. Go to the C:\ProgramFiles\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\WebSphereServerNode01Cell folder.
  2. Go to the Configuration file to see the deployed WebSphere application,

    In your case, the application configuration file may vary. It can be, for example, * .txt, *.xml, *. properties, *.config file). The following is an example of a Java JPA application with multiple DataSource.

The persistence.xml file is a configuration file. Provide the DataSource name of the Delinea driver, the native driver, and the secret server ID as follows:

  • DataSource: The JNDI name of Delinea Driver.
  • User: The JNDI name of Native Driver.
  • Password: The Secret server ID.

Your configuration file will look like the following:

alt

Modify the configuration file to look like the following:

alt

  • Configuration files have jdbc/book and jdbc/student Native Data Source JNDI names.
  • It modifies as a data source and contains the jdbc/delinea JNDI name of the Delinea drive.
  • Add the two-property user and password.
  • Set username to the native driver JNDI name jdbc/bookand jdbc/student and set password to the secret server IDs 5469,3862.
  • Save it and refresh your application.