You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/04/04 18:11:00 UTC
[jira] [Commented] (CAMEL-14737) Spring-boot closes datasource
before the last inflight messages are processed
[ https://issues.apache.org/jira/browse/CAMEL-14737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17075242#comment-17075242 ]
Claus Ibsen commented on CAMEL-14737:
-------------------------------------
I wonder if you can provide a sample project that demonstrates this? Maybe add a project on github, or attach a .zip file to this JIRA. It help us alot when we have something that easy demonstrate a problem, we can use to track down and implement a fix.
> Spring-boot closes datasource before the last inflight messages are processed
> -----------------------------------------------------------------------------
>
> Key: CAMEL-14737
> URL: https://issues.apache.org/jira/browse/CAMEL-14737
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot, camel-sql
> Affects Versions: 3.0.1, 3.1.0
> Environment: Windows 10 x64
> adopt open jdk 11
> spring-boot 2.2.5-RELEASE
> postgresql 12
> Reporter: Nicolas Gillet
> Priority: Minor
>
> As reported on Stack Overflow ([https://stackoverflow.com/questions/60654265/springboot-camel-datasource-already-closed-on-graceful-shutdown])
> I created a simple spring-boot application that fetches logs (camel-ftp) extract some data line by line and insert them in a database (camel-sql).
> When I stop the application (gracefully) spring shortly closes the datasource but there is still an inflight exchange and I get "datasource already closed" errors.
>
> I was looking for a way to tell spring to not close the datasource until all inflight exchanges are processed (or timed out ?)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)