3 Replies Latest reply on Dec 15, 2011 5:10 AM by godoy

    Create new Datasource from running application

    hanseichelpilz

      Hi,

       

      For data protection reason, we need to create a database/scheme for each customer of our application and the creation of a new customer should be possible without restarting the application server and touch its configuration files.

      I suggest that we need something like a generic persistence.xml and a JBoss that allows to create new datasources by an application.

       

      Is it possible to configure and use a new database datasource from a running application?

      My task is to store database credentials in a database table and open the connection on the fly when it is requested.

      The challenge is that somebody can insert additional database credentials/connection infos  in the table  and my application should know how to use these information to connecto to the database.

       

       

      Does anyone knows something about this situation?

       

      Thanks

       

      martin