You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "fabrizio.spataro" <fa...@bizmate.it> on 2015/01/08 15:58:45 UTC
Re: [SQL COMPONENT] mysql transaction
Hello,
using spring DSL and tag <camel:transacted/> i have this error:
*org.apache.camel.NoSuchBeanException: No bean could be found in the
registry of type: PlatformTransactionManager*
So.. i don't have any transactionManager. My connection is a simple mysql
connection like:
<bean id="mysql"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
...........
...........
</bean>
can you help me?
--
View this message in context: http://camel.465427.n5.nabble.com/SQL-COMPONENT-mysql-transaction-tp5761111p5761462.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [SQL COMPONENT] mysql transaction
Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hi
<camel:transacted /> uses TtransactionTemplate from spring-tx jar/bundle.
Try adding it to classpath/maven-dependencies.
regards
Grzegorz
p.s. I'll check your example tomorrow morning CET
2015-01-08 15:58 GMT+01:00 fabrizio.spataro <fa...@bizmate.it>:
> Hello,
>
> using spring DSL and tag <camel:transacted/> i have this error:
>
> *org.apache.camel.NoSuchBeanException: No bean could be found in the
> registry of type: PlatformTransactionManager*
>
> So.. i don't have any transactionManager. My connection is a simple mysql
> connection like:
>
> <bean id="mysql"
>
> class="org.springframework.jdbc.datasource.DriverManagerDataSource">
> <property name="driverClassName" value="com.mysql.jdbc.Driver" />
> ...........
> ...........
> </bean>
>
> can you help me?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/SQL-COMPONENT-mysql-transaction-tp5761111p5761462.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: [SQL COMPONENT] mysql transaction
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Read about transactions here
http://camel.apache.org/transactional-client.html
On Thu, Jan 8, 2015 at 3:58 PM, fabrizio.spataro
<fa...@bizmate.it> wrote:
> Hello,
>
> using spring DSL and tag <camel:transacted/> i have this error:
>
> *org.apache.camel.NoSuchBeanException: No bean could be found in the
> registry of type: PlatformTransactionManager*
>
> So.. i don't have any transactionManager. My connection is a simple mysql
> connection like:
>
> <bean id="mysql"
> class="org.springframework.jdbc.datasource.DriverManagerDataSource">
> <property name="driverClassName" value="com.mysql.jdbc.Driver" />
> ...........
> ...........
> </bean>
>
> can you help me?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/SQL-COMPONENT-mysql-transaction-tp5761111p5761462.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/