Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-236

ConfigurableDataSource

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2
    • JEE-JPA1-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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: