On Mon, Jan 2, 2012 at 1:41 PM, Pinaki Poddar <ppod...@apache.org> wrote:
> Nope, sorry. > For a different database (with a different URL), you will require a > different persistence.xml anyway. > > I disagree. There is nothing in persistence.xml that requires to hardcode the database URL. It's actually quite a bad taste to do so (IMHO). Persistence.xml supposedly points to the JNDI name that will resolve to a data source, which is configured outside of application. It would be nice if it were to be possible to specify properties for a specific dictionary. The same way OpenJPA supports multiple databases, a portable J2EE application should be able to too :)