I am deploying a HAR to JBOSS 4 using Hibernate 2.1.8, I need to enable result set wrapping. This was controlled by
'hibernate.jdbc.wrap_result_sets true' setting in the hibernate.properties.
Looking at the HibernateMBean it doesn't look like there is support
for this config property. Is there any other way (short of hardcoding the
source) to control this?
Currently the JBOSS log states this upon deployment:
Quote:
2005-03-10 11:44:44,264 DEBUG [net.sf.hibernate.cfg.SettingsFactory] Wrap result sets enabled? : false
hibernate-service.xml as follows:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!--
Hibernate Service Descriptor
@autor sergey
-->
<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=VisualDataHibernate">
<attribute name="DatasourceName">java:/VisualDataDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.SQLBaseDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/VisualDataSessionFactory</attribute>
<attribute name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="Hbm2ddlAuto">update</attribute>
<attribute name="ShowSqlEnabled">false</attribute>
<!--
NOT A VALID ATTRIBUTE !!!
<attribute name="WrapResultSetsEnabled">true</attribute>
-->
</mbean>
</server>