[
https://issues.apache.org/activemq/browse/CAMEL-2607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58627#action_58627
]
Claus Ibsen commented on CAMEL-2607:
------------------------------------
Yeah its a bit odd if Spring does not call the onApplicationEvent on
SpringCamelContext when it implements the ApplicationListener.
The listener is defined as
{code}
package org.springframework.context;
import java.util.EventListener;
/**
* Interface to be implemented by application event listeners.
* Based on the standard <code>java.util.EventListener</code> interface
* for the Observer design pattern.
*
* @author Rod Johnson
* @see org.springframework.context.event.ApplicationEventMulticaster
*/
public interface ApplicationListener extends EventListener {
/**
* Handle an application event.
* @param event the event to respond to
*/
void onApplicationEvent(ApplicationEvent event);
}
{code}
There is nothing in the javadoc that states how Spring detects this interface.
> 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.