Hibernate talking to different databases -


i need app talk 2 different databases, replicated(using postgres streaming replication). reason want have reads happening against 1 database , writes against other.

i use hibernate in application. there out of box way achieve this?

-thanks

edit: , yes, please comment on whether trying achieve makes sense.

hibernate supports sharding. see if helps you: http://www.hibernate.org/subprojects/shards.html

if using spring know there way dynamically switch datasource. find more information here

this similar question stackoverflow: handling multiple databases nhibernate in single application

also same kind of question in other forum discussion: http://forum.springsource.org/showthread.php?t=12665


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -