-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to configure properties in jboss-service.xml
PostPosted: Fri Jul 29, 2005 11:07 am 
Newbie

Joined: Tue Aug 31, 2004 9:22 am
Posts: 6
Hibernate version: 3.0.5

Mapping documents:
jboss-service.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE server>

<!-- Generated file - Do not edit! -->

<server>
<mbean code="org.hibernate.jmx.HibernateService" name="jboss.jca:service=GenesisHibernateService">
<depends>jboss.jca:service=RARDeployer</depends> <depends>jboss.jca:service=LocalTxCM,name=GenesisDS</depends>
<attribute name="MapResources">
</attribute>
<attribute name="JndiName">hibernate/GenesisHibernateFactory</attribute>
<attribute name="Datasource">java:/GenesisDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">org.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="hibernate.transaction.flush_before_completion">.true.</attribute>
</mbean>

</server>

Full stack trace of any exception that occurs:
12:02:34,343 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=GenesisHibernateService
org.jboss.deployment.DeploymentException: No Attribute found with name: hibernate.transaction.flush_before_completion
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:263)


Name and version of the database you are using:
MySql

How can i configure the properties:
hibernate.transaction.flush_before_completion=true
hibernate.transaction.auto_close_session=true
in the archive jboss-service.xml.
I'm using Jboss 3.2.7.
Thanks


Top
 Profile  
 
 Post subject: Re: How to configure properties in jboss-service.xml
PostPosted: Fri Jul 29, 2005 11:24 am 
Newbie

Joined: Tue Aug 31, 2004 9:22 am
Posts: 6
I found a table with a full set of hibernate configuration properties in this page: http://docs.jboss.org/jbossas/jboss4gui ... /ch13.html
but, there no exist the properties:
hibernate.transaction.flush_before_completion=true
hibernate.transaction.auto_close_session=true
Is there another way to configure this properties to the sessionFactory or the session?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.