You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by davsclaus <ci...@yahoo.dk> on 2011/01/25 17:12:49 UTC
Re: JPA DB Connection Properties
I think this is a general question how to do this with JPA. How to use
property placeholders in the persistence.xml file. Its not Camel specific.
I think you should google and ask at JPA community how to do that.
If you find a solution then please keep us posted. As others may see this
question and would like to find a solution as well.
--
View this message in context: http://camel.465427.n5.nabble.com/JPA-DB-Connection-Properties-tp3355378p3356539.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JPA DB Connection Properties
Posted by Ben O'Day <be...@initekconsulting.com>.
Claudio, you can use the "jpaProperties" and Spring property-placeholder to
do this...
<ctx:property-placeholder ignore-unresolvable="true"
location="classpath:context.properties"/>
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
<property name="persistenceUnitName" value="camel"/>
<property name="jpaProperties">
<props>
<prop key="openjpa.ConnectionURL">${openjpa.url}</prop>
</props>
</property>
</bean>
Ben
On Tue, Jan 25, 2011 at 8:12 AM, davsclaus <ci...@yahoo.dk> wrote:
>
> I think this is a general question how to do this with JPA. How to use
> property placeholders in the persistence.xml file. Its not Camel specific.
>
> I think you should google and ask at JPA community how to do that.
>
> If you find a solution then please keep us posted. As others may see this
> question and would like to find a solution as well.
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/JPA-DB-Connection-Properties-tp3355378p3356539.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>