openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pawel Veselov <pawel.vese...@gmail.com>
Subject Re: changing specific openjpa.jdbc.DBDictionary
Date Mon, 02 Jan 2012 23:23:13 GMT
On Mon, Jan 2, 2012 at 1:41 PM, Pinaki Poddar <ppoddar@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 :)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message