You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2015/05/04 22:48:06 UTC
[jira] [Updated] (TOMEE-1575) heroku PropertiesResourceProvider
[ https://issues.apache.org/jira/browse/TOMEE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau updated TOMEE-1575:
--------------------------------------
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:
{code}
<Resource id="jdbc/herokudb" type="DataSource"
properties-provider="org.apache.openejb.resource.heroku.HerokuDatabasePropertiesProvider" />
{code}
This provider will handle UserName/Password/JdbcUrl properties.
was:
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:
{code}
<Resource id="jdbc/herokudb" type="DataSource"
properties-provider="org.apache.openejb.resource.heroku.HerokuDatabasePropertiesProvider" />
{code}
This provider will handle UserName/Password/JdbcUrl properties.
> heroku PropertiesResourceProvider
> ---------------------------------
>
> Key: TOMEE-1575
> URL: https://issues.apache.org/jira/browse/TOMEE-1575
> Project: TomEE
> Issue Type: New Feature
> Reporter: Romain Manni-Bucau
> Assignee: Romain Manni-Bucau
> Fix For: 2.0.0-Milestone-1
>
>
> 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:
> {code}
> <Resource id="jdbc/herokudb" type="DataSource"
> properties-provider="org.apache.openejb.resource.heroku.HerokuDatabasePropertiesProvider" />
> {code}
> This provider will handle UserName/Password/JdbcUrl properties.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)