You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by marcinN <ma...@outbox.pl> on 2012/01/03 15:16:44 UTC
Re: BAM - problem with database
Solved:
The problem is with XML configuration. BAM Example on the binary
distribution is wrong:
<bean id="activities" class="org.apache.camel.example.bam.MyActivities">
<property name="jpaTemplate" ref="jpaTemplate"/>
<property name="transactionTemplate" ref="transactionTemplate"/>
</bean>
instead of property it should use
<constructor-arg>
<ref bean="jpaTemplate"/>
</constructor-arg>
<constructor-arg>
<ref bean="transactionTemplate"/>
</constructor-arg>
original version calls no argument constructor while the second one calls
valid constructor which creates also process name.
--
View this message in context: http://camel.465427.n5.nabble.com/BAM-problem-with-database-tp5071036p5116968.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: BAM - problem with database
Posted by Łukasz Dywicki <lu...@code-house.org>.
Cześć Marcin,
Zauważyłem Twój dzisiejszy post na users@camel.apache.org i nasunęło mi się pytanie - czy używasz Camel-BAM w produkcji?
Pozdrawiam,
Łukasz Dywicki
--
Code-House
http://code-house.org
> Solved:
>
> The problem is with XML configuration. BAM Example on the binary
> distribution is wrong:
>
> <bean id="activities" class="org.apache.camel.example.bam.MyActivities">
> <property name="jpaTemplate" ref="jpaTemplate"/>
> <property name="transactionTemplate" ref="transactionTemplate"/>
> </bean>
>
>
> instead of property it should use
>
> <constructor-arg>
> <ref bean="jpaTemplate"/>
> </constructor-arg>
> <constructor-arg>
> <ref bean="transactionTemplate"/>
> </constructor-arg>
>
> original version calls no argument constructor while the second one calls
> valid constructor which creates also process name.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/BAM-problem-with-database-tp5071036p5116968.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
zawa