You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2015/01/15 16:12:35 UTC
[jira] [Resolved] (ARIES-1273) Persistence unit with hibernate does
not start if datasource is not present
[ https://issues.apache.org/jira/browse/ARIES-1273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider resolved ARIES-1273.
----------------------------------------
Resolution: Fixed
> Persistence unit with hibernate does not start if datasource is not present
> ---------------------------------------------------------------------------
>
> Key: ARIES-1273
> URL: https://issues.apache.org/jira/browse/ARIES-1273
> Project: Aries
> Issue Type: Bug
> Components: JPA
> Reporter: Christian Schneider
> Assignee: Christian Schneider
> Fix For: jpa-container-1.0.3
>
>
> When the persistence unit starts aries creates the EntityManagerFactory by calling the PersistenceProvider (hibernate). Hibernate then tries to access the jndi DataSource as it wants to check some db details.
> If the DataSource is not yet up then this call will hang for a long time. This then blocks the startup of the pu bundle. So in effect this can then also block the startup of the DataSource bundle.
> We could either use a separate thread for the EMF creation or only start the creation when the DataSource is actually present.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)