Multi tenancy with schema per tenant [message #1480947] |
Thu, 20 November 2014 11:20  |
Eclipse User |
|
|
|
Hello,
I am tryign to run multi tenancy with schema per tenant. It seems to work good when tenant ID is set in XML as a property for persistance unit.
But I need to set tenant in code. Is that possible? How?
I found this article:
codecrafters.blogspot.it/2013/03/multi-tenant-cloud-applications-with.html
So I tried to set it in doBegin method in custom transaction manager. But that doesn't work. I guess relation descriptors aren't updated right.
I could provide more info with exception stack also but first... have I pick the right approach?
Thanks!
Martin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05142 seconds