-->
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: Using c3p0 with JBoss Mbean
PostPosted: Mon Dec 31, 2007 6:27 am 
Newbie

Joined: Tue May 15, 2007 9:01 am
Posts: 2
Hi,
We are using Jboss version 4.0.4 in our project.We are deplyoing the hibernate as an MBean . I want to use the c3p0 connection pooling mechanism . I am unableto figure out to specify the paramateres related to C3P0 in the hibernate-service.xml file .

Please help me in getting the solution of the same

I am attaching the file for the reference

<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate"
name="rtbd.hibernate:service=IdmHibernateService,name=IdmHibernateService">
<attribute name="DatasourceName">java:/securityserver</attribute>
<attribute name="Dialect">org.hibernate.dialect.OracleDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="MaxFetchDepth">0</attribute>
<!-- <attribute name="hibernate.c3p0.acquire_increment">3</attribute>
<attribute name="hibernate.c3p0.min_size">50</attribute>
<attribute name="hibernate.c3p0.max_size">200</attribute>-->
<attribute name="CacheProviderClass">
org.hibernate.cache.NoCacheProvider
</attribute>
<depends>jboss.jca:service=DataSourceBinding,name=securityserver</depends>

</mbean>
</server>


Top
 Profile  
 
 Post subject: Re: Using c3p0 with JBoss Mbean
PostPosted: Mon Aug 23, 2010 8:28 am 
Newbie

Joined: Mon Aug 23, 2010 8:27 am
Posts: 1
Hello

I think I have to configure c3p0 in the jboss-service.xml too. Have you find the response to this ?

Thanks!


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.