pstanton
pstanton

Reputation: 36640

tapestry-hibernate and 2 databases

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?

Upvotes: 0

Views: 438

Answers (2)

Henning
Henning

Reputation: 16311

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.

Upvotes: 1

Related Questions