java - Modify persistence.xml on runtime -


i'm developping program uses jpa, , deployed in single jar. wish modify (or ask user, in menú item) configuration of connection data database server.

it's possible modify data (user, password, ip) of server "on fly"?

(i apologize bad english)

the jpa spec doesn't allow dynamic modification of persistence-units. implementations may provide implementation-specific way of defining persistence-unit dynamically. datanucleus jpa per foot of this page


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -