-->
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: Default Datasource jBoss3.2.2/MySql/Hibernate2.1 as a SAR
PostPosted: Fri Jan 02, 2004 1:29 pm 
Beginner
Beginner

Joined: Tue Dec 30, 2003 1:51 pm
Posts: 49
Location: Michigan, USA
Hi All,
I am trying to tie down my last area of testing and configuration. When Hibernate is setup under a SAR as in 66.html. It is using my default datasouce for MySql.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>

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

<server>
   <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
       <depends>jboss.jca:service=RARDeployer</depends>
       <attribute name="MapResources">omni/user/UserBean.hbm.xml,omni/user/AddressBean.hbm.xml,omni/user/ProfileBean.hbm.xml</attribute>
       <attribute name="JndiName">HibernateFactory</attribute>
       <attribute name="Datasource">MySqlDS</attribute>
       <attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
       <attribute name="UseOuterJoin">true</attribute>
       <attribute name="ShowSql">false</attribute>
       <attribute name="UserTransactionName">UserTransaction</attribute>
       <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
       <attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
   </mbean>

</server>


My question-
Is hibernate using the c3p0 connection pool or the jboss connection pool by default? I am trying to find where this is set and the docs are clear where this is at. Any help would great!

jason


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2004 1:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
If you get your connections from JBoss, the JBoss pool is used.


Top
 Profile  
 
 Post subject: JBossManagedConnectionPool and Hibernate SAR deployment
PostPosted: Wed Mar 09, 2005 12:13 am 
Newbie

Joined: Sun Jun 20, 2004 3:06 pm
Posts: 5
I have Hibernate deployed as SAR in JBoss 3.2.5
I see that it is using the JBoss conncetion pool

Using mysql-connector-java-3.0.15-ga-bin.jar driver on MySQL 4.1.7.

Even with autoReconnect=true in the datasource xml like so -
<connection-url>jdbc:mysql://localhost/db?autoReconnect=true</connection-url>

I don't see connection resuming after a mysql bounce.

Is there some other paramters that needs to be passed to JBoss Pool to
recover from a database bounce?


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.