views:

31

answers:

2

I have a Tapestry5.1 app using tapestry-hibernate which now needs to connect to a 2nd (separate, not redundant or load balanced) database.

I've read that you can do this in hibernate by creating 2 separate session factories.

I'm not sure how to configure this in tapestry-hibernate though.

Any ideas?

+1  A: 

That's not supported, and I don't think it will be in the near future. See this feature request.

Instead, you could wire up JPA or Hibernate through Spring and just inject your repositories into your components; that works no matter the amount of databases.

Henning