That comment is in org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl#applyJdbcConnectionProperties. The more important calls are the ones right before those #put calls. The ones to StandardServiceRegistryBuilder#applySetting. Those are the settings that ultimately will get passed to the Configurable. #applyJdbcConnectionProperties does have branches dealing with jta- and non-jta datasources. EntityManagerFactoryBuilderImpl#applyTransactionProperties deals with transaction types.
So the code looks right. I assume you are just looking under the wrong keys. On Mon, Jun 8, 2015 at 8:25 AM Mihalcea Vlad <mih_v...@yahoo.com> wrote: > Hi Steven, > > I'm trying to integrate FlexyPool ( > https://github.com/vladmihalcea/flexy-pool ) with Java EE Application > servers, and the only work-around I found is to add a new Hibernate > ConnectionProvider that extends the DataSourceConnectionProvider and > exposes a DataSource proxy, instead of the original Application server one. > This can allow monitoring connection allocation. > > The persistence.xml properties (transaction-type, jta or non-jta data > source) are not available in the properties Map supplied to the > Configurable interface I'm also implementing. > > I checked the org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl > source code and found this comment: > > // HHH-8121 : make the PU-defined value available to EMF.getProperties() > configurationValues.put( AvailableSettings.JTA_DATASOURCE, > persistenceUnit.getJtaDataSource() ); > > This Hibernate issues is closed: > > https://hibernate.atlassian.net/browse/HHH-8122 > > But the properties are still missing in the properties Map supplied to the > Configurable > interface. Without this info, it's very hard to decide whether my > implementation should support aggressive release (for JTA) or not > (RESOURCE_LOCAL). > > Do you know anything about it? > > Vlad > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev