0 Replies Latest reply on Dec 19, 2006 3:03 PM by Artem Golubev

    How to get EntityManager on the fly for custom DB?Hi,

    Artem Golubev Newbie

      Hi, all!

      Our client wishes the next way of working for our application:
      On some user input (we have web application + EJB3), we must create new database from a template and use it in our EJB3 environment.

      I do not know how to implement it in JBoss :(

      Usually for single datasource we create -ds.xml file to create JDBC datasource and then reference it in our META-INF/persistence.xml file.

      But how I can create JDBC datasources on the fly and use it with (different) EntityManager-s on the fly?

      I appreciate any thoughts on this topic.