In our scenario we have multiple webapps - that share the same code - deployed in tomcat.
We use mybatis and SQL Server for data storage. At the moment every customer has one
database and one webapp in tomcat. Only the name of the webapp is different.
On every new release of the application I end up redeploying the application for every customer.
That becomes very tiresome...
The only thing that is different for every client is database user, password and name of database.
Database schema and application code is identical. So I am looking for a way to have one webapp
deployed in tomcat that accesses a different database depending on the request, e.g. http://www.example.org/A
accesses database A and http://www.example.org/B uses database B.
Is this a good approach? I think its possible (is it?) to inject the database name in every sql statement but how
to set up SqlSessionFactory?
Björn
I hope that at least, it gives you some ideas.
S!
D.
2010/7/9 Björn Raupach <raupach...@googlemail.com>: