To Li Ying and Dave New ton, multiple datasources is a common
requirement in large scale e-commerce and telecom application.
I used a data object to table
mapping to do DB routing vertically, pk hashing to route horizontally.
The routing operation should not be
done by Struts, but by persistent layer.
2010/10/15, Eduard Neuwirt <[email protected]>:
> Hello,
>
> I am looking for an elegant solution for the following situation.
>
> I have a multitenant struts/spring/hibernate application. Every tenant is
> stored in own database within the same RDBMS. All databases has the same
> schema. At the spring layer every tenant is represented as a datasource.
> Because I use the Hibernate I have to create multiple SessionFactories to
>
> How can I provide the correct Seesionfactory to the UserSession in struts.
> Once I have is the tenantId stored in UserSession itself.
>
> Please help
> Eduard
>
--
从我的移动设备发送
*Kun He* (or Raymond He)
A Java Programmer
Alibaba inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]