Hi there,
Looking for help creating a connection from my java-db web starter program in Bluemix to a backend SQL database. Created a secure gateway connection in my Org. what should be the configuration in the persistence.xml? Can someone share a working configuration? appreciate your help.
rgds
Answer by BrianSPaskin (1990) | Oct 07, 2015 at 05:12 AM
Hi, Your persistence.xml file should not look any different. You are going to specify JTA and the JNDI name of the Datasource in the Liberty server.xml. Within the Datasource configuration you would specify the connection string using the hostname and port of the Destination you created.
Here is a small tutorial on connecting a Secure Gateway to a DB. And here is an overview of the overall Secure Gateway.
Regards, Brian
Answer by Anupam Basu (5) | Oct 07, 2015 at 09:39 AM
Thanks Brian. The issue is editing deployment configuration. We have to do that outside of IDE. Anyway, I got some clue following the questions on Server.xml.
Appreciate your response.
rgds,