Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-190

Create ConfigurableDataSource

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 0.3-incubating
    • JPA-Module
    • None

    Description

      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

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: