Is this possible at the current state of the art?
I'm developing a webapp where multi-tenancy is a thing. Since the recent feature request, my customer wants to have an admin panel, where he can trigger the creation of a new tenant.
At the moment & till now, my customer if he wanted a new tenant, wrote me, I made changes to the persistance.xml, standalone.xml and in my abstracted Service class for the PersistenceContext of each EntityManager for each tenant (since I want to be at the secure side). Created the new schema and then I redeployed.
Googling, searching around, reading questions here and on other platforms it seems to be not possible to automate this whole process. Or are there ways?
The problem here I am facing is the editing of a source file and the configuration files. I am aware that I can add new datasources at runtime with the help of the wildfly console but the rest?
Technology in use: JavaEE & Hibernate.
I would appreciate any help here and thanks in forward!