-->
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.  [ 6 posts ] 
Author Message
 Post subject: Need Help in JBoss Service
PostPosted: Wed Feb 04, 2004 5:48 am 
Beginner
Beginner

Joined: Wed Feb 04, 2004 5:41 am
Posts: 20
Hi Im using Hibernate-1.2.3 with JBoss-3.0.7 and i need to setup hibernate.fetch_size and hibernate.batch_size. How do I declare that in JBoss Service file?

This is my current jboss service file

<server>
<mbean code="cirrus.hibernate.jmx.HibernateService"
name="jboss.jca:service=servicename">

<classpath codebase="/jboss-3.0.7/server/default/lib/hibernate.jar"
lib="/jboss-3.0.7/server/default/deploy/hibernate-hms-0.1.0.sar,/jboss-3.0.7/server/default/lib/commons-collections.jar,/jboss-3.0.7/server/default/deploy/hibernate-ems-0.1.1.2.sar"/>
<depends>jboss.jca:service=RARDeployer</depends>

<!-- Make it deploy ONLY after DataSource had been started -->
<!--depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends-->
<attribute name="MapResources">...<my hbm.xml files>...</attribute>
<attribute name="JndiName">java:/hibernate/ABC</attribute>
<attribute name="Datasource">java:/MySqlDS</attribute>
<attribute name="UserName">root</attribute>
<attribute name="Dialect">cirrus.hibernate.sql.MySQLDialect</attribute>
<attribute name="UserName">root</attribute>
<attribute name="TransactionStrategy">cirrus.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">cirrus.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="
<!--attribute name="UserTransactionName">java:comp/UserTransaction</attribute-->
</mbean>
</server>

Thanks.

-Len


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 3:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
This cannot be set on the service parameters available. You can look at the code and make the changes to set the values - its not that difficult.


Top
 Profile  
 
 Post subject: How?
PostPosted: Fri Feb 06, 2004 3:56 am 
Beginner
Beginner

Joined: Wed Feb 04, 2004 5:41 am
Posts: 20
How? Could you please post a sample or maybe post a site address for more information?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 4:15 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Download the sources and have a look at the jca package for a start
http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate2/src/net/sf/hibernate/jca/

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 4:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Note that you can set it in 2.1.2 using <parameter name="JdbcFetchSize"> and <parameter name="JdbcBatchSize">. To patch it in yourself modify the classes in net.sf.hibernate.jmx


Top
 Profile  
 
 Post subject: Migrate 1.2.x to 2.x.x
PostPosted: Fri Feb 06, 2004 5:48 am 
Beginner
Beginner

Joined: Wed Feb 04, 2004 5:41 am
Posts: 20
If I were to migrate my hibernate 1.2.3 to hibernate 2.x.x (latest stable) so I could take advantage of fetchsize and batchsize in JBoss, what are the typical gotchas i need to be aware of? My app is running in full production (MySQL4.x+Jboss3.0.7+Hibernate1.2.3+Swing), not much problem popped up in my session beans and hibernate daos and I dont really like it to "break" because of my upgrade. I use one-to-one, one-to-many and many-to-many relationships heavily.

Thanks.


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