开发者

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?


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.


Checkout this thread http://tapestry.1045711.n5.nabble.com/Using-multiple-databases-td2468101.html#a2468101

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜