-->
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 get Hibernate DataSource for monitoring purposes
PostPosted: Mon Apr 03, 2017 1:57 pm 
Newbie

Joined: Mon Apr 03, 2017 1:48 pm
Posts: 1
With Hibernate5, how to get the connection provider handle and subsequently the datasource in the code? SessionFactoryImpl had a getConnectionProvider() which is removed. The intention is to register the dropwizard metric to the datasource.


Top
 Profile  
 
 Post subject: Re: How to get datasource inst for hibernate.hikari.dataSource
PostPosted: Mon Apr 03, 2017 3:13 pm 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1630
Location: Romania
It sounds like you need FlexyPool. That's exactly what FlexyPool does, and it does even more than monitoring. It allows you to figure out the right pool size dynamically.


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.