Claus Ibsen created CAMEL-20211:
-----------------------------------

             Summary: camel-jbang - Export should not start IdempotentConsumer
                 Key: CAMEL-20211
                 URL: https://issues.apache.org/jira/browse/CAMEL-20211
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.3.0


If you build idempotent consumer with a JDBC connection to a database then in 
export mode we should stub this to avoid connecting to the real database.

Caused by: org.springframework.transaction.CannotCreateTransactionException: 
Could not open JDBC Connection for transaction
        at 
org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:313)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:531)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:405)
        at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
        at 
org.apache.camel.processor.idempotent.jdbc.JdbcMessageIdRepository.doStart(JdbcMessageIdRepository.java:91)
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:113)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:126)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:153)
        at 
org.apache.camel.processor.idempotent.IdempotentConsumer.doStart(IdempotentConsumer.java:219)
        at 
org.apache.camel.support.service.BaseService.start(BaseService.java:113)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:126)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113)
        at 
org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:153)
        at 
org.apache.camel.processor.errorhandler.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1698)
        at 
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:60)
        ... 52 more



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to