Bharat Kasodariya wrote:Actually, I have developed ERP app in Vaadin+Hibernate. Now I want to put multitenancy support without major change in existing code.
Like for the authentication support people can use spring security kind of framework.So is there any api which I can plugin in to the app?
Multitenancy is a feature of an application -- meaning it is at the application layer. Applications need to be designed, and then implemented / ported to be that way. You can't just take an application, configure a security feature and be done,
You *do* need to make sure that users are authenticated (as you mentioned)... but... You also need to make sure that these authenticated users don't see each other's data. You need to make sure that the users requests don't step on each other requests. And finally, you need to be able to monitor (and maintain) the response time SLAs.
As an analogy, it is like trying to convert a mansion into a hotel. You can't do it just by adding a security guard and a check-in desk.
Henry