-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: HAR deployment MBean (wrap_result_sets) config
PostPosted: Thu Mar 10, 2005 1:44 pm 
Newbie

Joined: Thu Jan 13, 2005 1:24 pm
Posts: 4
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>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
How did you find that undocumented feature?! Why do you think you need it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 2:10 pm 
Newbie

Joined: Thu Jan 13, 2005 1:24 pm
Posts: 4
As I realize now, I am confusing the (hibernate.properies) setting
with Hibernate3 version. But anyways ... looking at the Loader
under (net.sf.hibernate.loader) you can see that ResultSetWrapper
will be invoked wrapping the JDBC ResultSet given that
session.getFactory().isWrapResultSetsEnabled() is set to true.
The driver I am using generates errors unless I wrap the resultset
and reference the columns by name, also due to driver specific issues
I had to extend the ResultSetWrapper (net.sf.hibernate.impl).

This is why I NEED to enable this setting :)

any ideas?

thanks

p.s. all of this is a part of my ongoing effort to submit a patch to
you guys to support the "amazing" SQLBase and its "great" drivers


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.