-->
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: Problem with Ejb3Configuration and C3P0ConnectionProvider
PostPosted: Wed Jul 02, 2008 12:20 pm 
Newbie

Joined: Wed Jul 02, 2008 12:08 pm
Posts: 2
Hello,

If I try to use a c3p0 connection pooling together with Hibernate/JPA the Ejb3Configuration.setDataSource method overwrites the CONNECTION_PROVIDER property. Therefore the ConnectionProviderFactory always creates an instance of type InjectedDataSourceConnectionProvider and not of the expected type C3P0ConnectionProvider.

Does anybody know why I can not create the right ConnectionProvider?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 1:56 am 
Newbie

Joined: Wed Jul 02, 2008 12:08 pm
Posts: 2
My mistake,
Because I use spring configuration which manages the DataSource ( “HotSwappableDatasource“ approach), I have to manage the connection pooling inside my DataSourceFactoryBean.


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.