users@glassfish.java.net

Re: How to inject EntityManager dynamically (runtime)

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jan 2008 13:51:14 PST

You'll need to define as many PUs in your persistence.xml as there are different databases, inject/lookup all the EMs, and then use the EM that corresponds to your account ID.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=255465