I have an user-defined service in Bluemix (on-premise database that is not on the Bluemix cloud), and the credentials looks like this:
System-Provided:
{
"VCAP_SERVICES": {
"user-provided": [
{
"credentials": {
"dbname": "",
"host": "",
"password": "",
"port": "",
"username": ""
},
"label": "user-provided",
"name": "some-service",
"syslog_drain_url": "",
"tags": []
}
]
}
}
Is there a way to parse the JSON somehow and read it into these persistence unit properties?
<properties>
<property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="javax.persistence.jdbc.url" value=''/>
<property name="javax.persistence.jdbc.user" value=""/>
<property name="javax.persistence.jdbc.password" value=""/>
</properties>