Environment variable expansion in persistence.xml (JPA)
        Posted  
        
            by user342495
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user342495
        
        
        
        Published on 2010-05-16T17:56:49Z
        Indexed on 
            2010/05/16
            18:00 UTC
        
        
        Read the original article
        Hit count: 249
        
jpa
I am developing a Eclipse RCP plugin which uses JPA. I tried to specify the database path via a variable give to the JVM on runtime. The property is set correctly but the database is created in a folder named after the variable name (here: ${DBHOME}).
<property name="javax.persistence.jdbc.url" value="jdbc:derby:${DBHOME};create=true"/>
Is there a possibility to fix this?
Thx
© Stack Overflow or respective owner