----- Original Message -----
From: zineb bentaleb
To: persistence_at_glassfish.dev.java.net
Sent: Wednesday, January 14, 2009 4:04 AM
Subject: configure properties in persistence.xml at runtime
Hello
I'm using this persistence.xml file and i want to change properties at runtime; How can I do it :
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="
http://java.sun.com/xml/ns/persistence">
<persistence-unit name="EmployeeService" transaction-type="RESOURCE_LOCAL">
<class>com.shemsit.model.Employee</class>
<properties>
<property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
<property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/testJPA"/>
<property name="toplink.jdbc.user" value="root"/>
<property name="toplink.jdbc.password" value="root"/>
<!-- enable this property to see SQL and other logging -->
<!-- property name="toplink.logging.level" value="FINE"/ -->
<!--<property name="" value="app"/>-->
</properties>
</persistence-unit>
</persistence>
Zineb.