Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20211

camel-jbang - Export should not start IdempotentConsumer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0
    • camel-jbang
    • None
    • Unknown

    Description

      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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: