Configuring multiple simultaneous datasources

75 views
Skip to first unread message

Jonathan Janisch

unread,
Mar 17, 2015, 1:31:31 PM3/17/15
to ninja-f...@googlegroups.com
I'm making a small little utility and I thought I might use Ninja for it, but it needs to talk to multiple datasources (I won't need flyway as I'm not changing any schema - primarily only querying each DB for data). Ninja's config file seems like it's geared towards a single datasource at a time (whether its dev, prod, etc).

Is it possible to use Ninja with multiple datasources at runtime?

Thanks!

Raphael André Bauer

unread,
Mar 17, 2015, 1:37:15 PM3/17/15
to ninja-f...@googlegroups.com
Out of the box it's not possible. guice-jpa is not supporting it.
There is a long discussion to moving over to http://onami.apache.org/
which is a much better sequel to guice-jpa. Let me know if you want to
contribute :)
Raphael
> --
> You received this message because you are subscribed to the Google Groups
> "ninja-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ninja-framewo...@googlegroups.com.
> To post to this group, send email to ninja-f...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ninja-framework/c97c9138-8a1e-42d2-a8a4-2a79bb9a97e1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jonathan Janisch

unread,
Mar 17, 2015, 2:14:20 PM3/17/15
to ninja-f...@googlegroups.com
Thanks for the quick reply Raphael

Thibault MEYER

unread,
Mar 18, 2015, 4:44:48 PM3/18/15
to ninja-f...@googlegroups.com
Onami seems goods and have a good tools to easily integrate Quartz scheduler.

Pooja Dubey

unread,
May 21, 2019, 3:06:52 AM5/21/19
to ninja-framework
I just wanted to know if ninja framework supports multiple database communication now. 


On Tuesday, March 17, 2015 at 11:07:15 PM UTC+5:30, Raphael André Bauer wrote:
Out of the box it's not possible. guice-jpa is not supporting it.
There is a long discussion to moving over to http://onami.apache.org/
which is a much better sequel to guice-jpa. Let me know if you want to
contribute :)
Raphael

On Tue, Mar 17, 2015 at 6:31 PM, Jonathan Janisch <jonja...@gmail.com> wrote:
> I'm making a small little utility and I thought I might use Ninja for it,
> but it needs to talk to multiple datasources (I won't need flyway as I'm not
> changing any schema - primarily only querying each DB for data). Ninja's
> config file seems like it's geared towards a single datasource at a time
> (whether its dev, prod, etc).
>
> Is it possible to use Ninja with multiple datasources at runtime?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "ninja-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages