We are developing a multi-tier enterprise application
using J2EE . The problem we have is that we
will have unspecified number of databases,
one for each user that is we need to create a separate
database for each of the users of our system.
we need to make the appropriate connection
to these databases based on the information the users
enter at logon.How should we handle this? notice that we want to
implement our business objects as Entity Beans and at the time
of deployment we really do not know the datasource of these
Entity Beans since it will depend on database the user want to
connect.In another word we need to specify the datasource for out
Entity Beans dynamically.We would be thankfull if anyone can give
us comments and suggestions about this
problem.