If your databases are having same schema then multi-tenancy is an option.

http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch16.html

If there are completely different databases then I don't think you can do that 
with tapestry-hibernate database. Tapestry-hibernate does not support multiple 
databases.  Tapestry-jpa does support multiple-databases. 

With tapestry-jpa you can setup multiple databases and for switching based on 
client, you will have to use EntityManagerManager

http://tapestry.apache.org/5.3.4/apidocs/org/apache/tapestry5/jpa/EntityManagerManager.html

and choose the database(persistence context) based on the client.


On Sep 25, 2012, at 5:18 PM, esper wrote:

> Can you please elaborate? I don't think I understand...
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Again-with-the-tapestry-hibernate-and-switching-the-database-tp5716477p5716482.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

Reply via email to