Hi guys, as I mention on the twitter, currently I am developing a PoC for
solving the problem of multi-tenancy with schema-based approach. This means
that for each tenant has its own schema inside database. Moreover the same
approach can be used just in case of database-based approach.

Another of the requirements we are having in my company is that a tenant
should any tenant should be able to be added dynamically, without having to
stop the server.

To implement this in TomEE I have implemented my own Router. Of course it
is a PoC so some parts needs more validations and/or some refactor, but I
think that as first approach to see the idea is enough.
You can see the code here: https://github.com/lordofthejars/multi

I think that TomEE could provide this feature out of the box, it is really
not so hard and with the inclusion of CDI you will see that it is pretty
simple.
This email is only to open the discussion about if it is interesting to add
it in TomEE or not.

My next steps will be present the solution to my teams, and after some
discussions, implement it as final solution (which I am sure we will be
able if you agree to implement it as module inside TomEE).

And that's all, for any question about the PoC feel free to ask it.

Alex.

Reply via email to