On 2011-3-26, at 上午4:56, mranest wrote:
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.
Hi,
I assume you're using smx4,right?
You mean you're using JBI packaged SA?
How about you add camel-core dependency into your SU/SA pom.xml?
Btw, if you're using SMX4 for new project, I suggest you should use
osgi packaged camel router bundle if you don't have to use JBI.
You can take a look at camel-osgi example shipped with kit to get
concrete ideas how it works.
Freeman
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.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org