Hello all,
I am trying to use a recipient-list in camel, to multicast a message to a
couple of endpoints. The route is declared as follows:
That works perfectly, with the default aggregation strategy of picking the
last reponse and making it the out message. However, I would like to combine
all responses to a single message and return that as the response. I started
implementing a custom
org.apache.camel.processor.aggregate.AggregationStrategy, and reshaped my
route by using that bean in the multicast as follows:
...
The problem is that servicemix now throws an exception while starting up.
Root cause is:
Caused by: java.lang.NoClassDefFoundError:
org/apache/camel/processor/aggregate/AggregationStrategy
at java.lang.ClassLoader.defineClass1(Native Method)
...
Caused by: java.lang.ClassNotFoundException:
org.apache.camel.processor.aggregate.AggregationStrategy
in classloader
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@b4e3a1
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Can anyone suggest a workaround, or an error in my configuration? My SU is
configured as a jbi-service-unit maven project, so no explicit OSGi
declarations on which packages to import.
Kind regards,
Anestis
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Problem-using-multicast-in-a-servicemix-camel-SU-tp4264841p4264841.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.