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.  [ 1 post ] 
Author Message
 Post subject: Jboss: how to disable auto session close after transaction?
PostPosted: Mon Jun 05, 2006 11:35 am 
Newbie

Joined: Wed May 24, 2006 10:11 am
Posts: 5
Hibernate version:
3.1

Good day to all,
I have some problems with Hibernate in JBoss; the point is that the session is closed automatically after commiting a transaction, but I don't want this to happen as I have a filter that automatically does it.
Searching the web I found the entry line for the hibernate.properties file, but I'm using a .har and a jboss-service.xml to deploy.

How should the line in the jboss-service.xml look like in order to disable the auto close session after transaction?

Currently my file looks like:

Code:
<mbean code="org.jboss.hibernate.jmx.Hibernate"  name="jboss.har:service=tu-persistence">
    <attribute name="DatasourceName">java:/CacheDS</attribute>
    <attribute name="Dialect">com.tu.hibernate.CacheDialect</attribute>
    <attribute name="SessionFactoryName">java:/hibernate/SessionFactory/tu-persistence</attribute>
    <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
    <attribute name="ShowSqlEnabled">true</attribute>
</mbean>



Bets regards

domyalex


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

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.