I need my app to talk to two different databases, which themselves are replicated(using Postgres streaming replication). The reason is that I want to have all the reads happening against one database and writes against the other.
I use hibernate in my application. Is there an out of the box way to achieve this?
-thanks
edit: And yes, please comment on whether what I am trying to achieve makes sense.