Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Heroku provides DATABASE_URL environment variable but in a php style (postgres://user:pwd@host:port/db). It would be great to add a org.apache.openejb.api.resource.PropertiesResourceProvider to let a resource directly use it to define a datasource:
<Resource id="jdbc/herokudb" type="DataSource" properties-provider="org.apache.openejb.resource.heroku.HerokuDatabasePropertiesProvider" />
This provider will handle UserName/Password/JdbcUrl properties.