[
https://issues.apache.org/activemq/browse/CAMEL-2607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58623#action_58623
]
Claus Ibsen commented on CAMEL-2607:
------------------------------------
I do *not* think this is the right solution.
Now {{SpringCamelContext}} is not an {{ApplicationListener}} and how will you
guarantee that Spring will invoke it?
CamelContextFactoryBean is (I assume) only active during creation of the
CamelContext. Later at runtime this factory is *disposed*.
Then how can the camel-event component listen for Spring events?
What this change fixes is only during creation of SpringCamelContext to avoid
the duplicate events. But I think we can remedy this in another way.
> CamelContextFactoryBean and SpringCamelContext's onApplicationEvent() are all
> been called in Spring 3.0.1
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2607
> URL: https://issues.apache.org/activemq/browse/CAMEL-2607
> Project: Apache Camel
> Issue Type: Improvement
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.3.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.