users@glassfish.java.net

Re: Dynamically bind a datasource to a persistence unit ?

From: <glassfish_at_javadesktop.org>
Date: Thu, 26 Jul 2007 11:09:38 PDT

1. You PU name is "PU_4" not "persistence/PU_4" as you pass to the createEMF call.

2. While in theory it can be possible to pass in a Map of overrides to the createEMF call, TopLink currently doesn't support 2 EMFs in the same VM with different properties.

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

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