deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <>
Subject [jira] [Resolved] (DELTASPIKE-190) Create ConfigurableDataSource
Date Thu, 14 Jun 2012 19:51:42 GMT


Mark Struberg resolved DELTASPIKE-190.

    Resolution: Fixed
> Create ConfigurableDataSource
> -----------------------------
>                 Key: DELTASPIKE-190
>                 URL:
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: JPA-Module
>    Affects Versions: 0.3-incubating
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.3-incubating
> configuring the database connection in JPA persistence.xml is always ever a pain. Either
you add you maintain multiple persistence.xml or you use JNDI for getting the underlying database
connection for different Servers and ProjectStages.
> The solution is to introduce an own DataSource which can be configured in persistence.xml.
This 'ConfigurableDataSource' knows itself where to get the settings from. In our case this
will get configured via standard CDI mechanisms, e.g. @ProjectStageActivated and @ExpressionActivated.

> If someone has a better idea, then please ping back

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message