-
1. Re: dynamic parameters in persistence.xml
kapitanpetko Jun 17, 2009 3:40 AM (in response to markwigmans)What do you mean by dynamic? You can replace those at build/package time using Ant or Maven filtering.
That is not completely 'dynamic', but will do if you just want different configurations (testing, release, etc.)HTH
-
2. Re: dynamic parameters in persistence.xml
markwigmans Jun 17, 2009 8:54 AM (in response to markwigmans)In my current seam application I have an external components.xml (located in jboss/server/default/conf) file to configure the application for a particular environment.
By 'dynamic' I mean a similar configuration possibility.I use jboss-4.2.3-GA and seam 2.1.1-GA
-
3. Re: dynamic parameters in persistence.xml
kapitanpetko Jun 17, 2009 9:21 AM (in response to markwigmans)Well JPA looks for persistence.xml on the classpath, to you could probably externalize it, like you did with components.xml.
Depending on your application structure, you may run into problems, though.So if have different environments, a separate build for each one would be the safest thing.
-
4. Re: dynamic parameters in persistence.xml
sherkan777 Jun 17, 2009 10:08 AM (in response to markwigmans)Well, I think u need to create persistence class manuallly as a java class and register it.
Here i found some example, but u need to find it in google how to create persistence provider.
http://forums.java.net/jive/thread.jspa?threadID=61175&tstart=0