Hi Nikola,

the bundle looks a bit weird. Make sure to add the DataSourceFactory from the 
Hikari Bundle to your application configuration and make sure that 
dropwizard-db is not part of your application.

Take a look at the unit test for an example:

https://github.com/mtakaki/dropwizard-hikaricp/blob/1.3.x/src/test/java/io/dropwizard/db/ManagedPooledDataSourceTest.java#L110-L115
 
<https://github.com/mtakaki/dropwizard-hikaricp/blob/1.3.x/src/test/java/io/dropwizard/db/ManagedPooledDataSourceTest.java#L110-L115>
https://github.com/mtakaki/dropwizard-hikaricp/blob/1.3.x/src/test/java/io/dropwizard/db/ManagedPooledDataSourceTest.java#L117-L135
 
<https://github.com/mtakaki/dropwizard-hikaricp/blob/1.3.x/src/test/java/io/dropwizard/db/ManagedPooledDataSourceTest.java#L117-L135>


Cheers,
Jochen

> Am 07.09.2020 um 12:59 schrieb Nikola Stevanović <[email protected]>:
> 
> Hi everyone,
> 
> I have issue with implementing HikariCP in my Dropwizard 1.3.8 app. Project 
> uses Maven as build tool so I've added following dependency from this 
> https://github.com/mtakaki/dropwizard-hikaricp/tree/1.3.x 
> <https://github.com/mtakaki/dropwizard-hikaricp/tree/1.3.x> link:
> 
>   
> <dependency> 
>   <groupId>com.github.mtakaki</groupId> 
>   <artifactId>dropwizard-hikaricp</artifactId> 
>   <version>1.3.8</version> 
> </dependency>
> 
> 
> ...under my dependencies tag. As mentioned in link I'm supposed to get:
> 
> INFO [2016-03-14 06:32:06,681] org.eclipse.jetty.util.log: Logging 
> initialized @1894ms
> INFO [2016-03-14 06:32:08,675] com.zaxxer.hikari.HikariDataSource: hibernate 
> - Starting...
> 
> message in my logs but unfortunatelly I don't. 
> 
> Do I need to create some kind of Bundle and if yes how (simple example would 
> be nice), if not then what else?
> 
> 
> 
> Any kind of help/advice is greatly appreciated.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/3cbdc158-f5cd-4d2a-b575-6673c2352bd3o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dropwizard-user/3cbdc158-f5cd-4d2a-b575-6673c2352bd3o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/D6FC50D6-70C5-416A-B79C-3CE0B22929E3%40schalanda.name.

Reply via email to