I have noticed that in Hibernate2 I was able to specfy the
hibernate.connection.provider_class
but in Hibernate3 I am unable. I traced through the code in debug and I found this:
HibernateService.start()
-->buildSessionFactory()
This calls static intilizer for Configuration and Environment which loads hibernate.properties and stored is in GLOBAL_PROPERTIES.
Starting the HibernateService triggers the static initializer, which loads the properties, but they are never made available to the HibernateService.
The intialization calls various "setter" methods,
setDatasource
setTransactionManagerLookupStrategy
setUserTransactionName
for the items specified in jboss-service.xml, and these are the only properties made available to the HibernateService. the other properties in GLOBAL_PROPERTIES are not made available.
Meanwhile, we get this:
SettingsFactory.createConnectionProvider()
it always creates a DatasourceConnectioProvider becuase it cannot see the property hibernate.connection.provider_class which I specified in hibernate.properties.
Does anyone have any information about this, and does it look like a bug?
John Pianezze
Telephia
|