I´ve upgrade to hibernate 3.1.2 and i´ve found that when i execute any 
transaction,commit() yhe session is closed automatically.

I´m working with hibernate mbean and my hibernate-service.xml is this


  | <server>
  |     <mbean code="org.jboss.hibernate.jmx.Hibernate" 
name="jboss.har:service=Hibernate">
  |         <attribute name="DatasourceName">java:/repository</attribute>
  |         <attribute 
name="Dialect">org.hibernate.dialect.SQLServerDialect</attribute>
  |         <attribute 
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  |             <attribute 
name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
 
  |             <attribute name="ShowSqlEnabled">false</attribute>      
  |     </mbean>
  | </server>
  | 

i need a property in wich i can tell my application not to close the session 
every time i make a commit.

In hibernate exists the property 

 anonymous wrote : 
  | hibernate.transaction.auto_close_session
  | 

but i can´t map this property to jboss mbean file..

Any ideas about this..??

thanks...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924583#3924583

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924583


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to