users@glassfish.java.net

Dynamic Persistence Unit?

From: Dennis Gesker <dennis_at_gesker.com>
Date: Wed, 6 May 2009 16:42:36 -0600

Could someone recommend a site or tutorial on how to create a persistance
unit on the fly?

For instance... in my app my login and customer data is in a PrimaryDb. When
I add a new customer to the PrimaryDb (and a reference new customer specific
Db e.g. CUST1, CUST2, etc.) I want to be able to create a new PU on the fly
without having to manually pull the app and edit the xml file and re-deploy.

I've done this pretty regularly in the past when I I was using plain old
jdbc but I'm looking for a good clean jpa example.

Any recommendations?

Dennis