8 Replies Latest reply on Aug 16, 2007 3:18 PM by Pouyan Azarshahri

    Dynamically add persistence units

    Pouyan Azarshahri Newbie


      I was on my co-worker's computer and he had a japanese-translated keyboard. That was why it shows up as question marks.

      Here is my question again (sorry!!) :

      Is there a way to dynamically add or remove persistence units from the persistence.xml file? My application is built on top of a system that lets end-users add or remove databases dynamically so there can theoretically be an infinite amount of datasources and persistence units. I have not found any kind of feasible way of doing this using the persistence layer. Please advise.

      -Confused and Bewildered-