Details
Description
We should check the export service instead of the camelContext.
— components/camel-spring/src/main/java/org/apache/camel/spring/remoting/CamelServiceExporter.jav(revision 895109)
+++ components/camel-spring/src/main/java/org/apache/camel/spring/remoting/CamelServiceExporter.jav(working copy)
@@ -83,7 +83,7 @@
}
Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(camelContext, uri);
- notNull(camelContext, "service");
+ notNull(getService(), "service");
Object proxy = getProxyForService();
consumer = endpoint.createConsumer(new BeanProcessor(proxy, camelContext));