web stats
HikariCP - executeCachedQuery function - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2019, 06:02 AM
jcurry5 jcurry5 is offline
OBX.2 Kenobi
 
Join Date: May 2013
Posts: 56
jcurry5 is on a distinguished road
Default HikariCP - executeCachedQuery function

I'm testing connection pooling with Hikari and following some documentation, I noticed that the documentation was using executeQuery rather than executeCachedQuery.

When attempting to change the line of code to use executeCachedQuery, I get the error:
Cannot find function executeCachedQuery in object HikariProxyConnection@974197131 wrapping net.sourceforge.jtds.jdbc.JtdsConnection@34d6e8b9.

Does executeCachedQuery not work with Hikari 2.5.1 or am I missing something?
Reply With Quote
  #2  
Old 11-13-2019, 12:26 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 999
agermano is on a distinguished road
Default

executeCachedQuery is part of the mirth User API. It's a method on the com.mirth.connect.server.userutil.DatabaseConnecti on object that is returned by the DatabaseConnectionFactory.
Reply With Quote
  #3  
Old 11-13-2019, 12:39 PM
jcurry5 jcurry5 is offline
OBX.2 Kenobi
 
Join Date: May 2013
Posts: 56
jcurry5 is on a distinguished road
Default

Quote:
Originally Posted by agermano View Post
executeCachedQuery is part of the mirth User API. It's a method on the com.mirth.connect.server.userutil.DatabaseConnecti on object that is returned by the DatabaseConnectionFactory.
Gotcha - thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation