Can you double check the hazelcast jars in your class path? I bet the jars’ versions were massed.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 1, 2014 at 8:53:26 AM, doug5791 (tobed...@uwgb.edu) wrote: > I have a route that fills a Hazelcast IList "hlist" already running. The next > thing I would like to do is set up an additional route (seperate class) that > uses the Camel Hazelcast Consumer; listening for additions to the Hazelcast > instance already running and then continue to other endpoints. > > I have followed the documentation here > for using the list > consumer. It mentions that there are header variables, but does not explain > how/when to use them. > > When trying to run the below route, I receive "Exception in thread "main" > java.lang.NoSuchMethodError: > com.hazelcast.core.IList.addItemListener(Lcom/hazelcast/core/ItemListener;Z)V" > > : > > fromF("hazelcast:%shlist", HazelcastConstants.LIST_PREFIX) > .log("String...") > .choice() > > .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED)) > > .log("...added") > .to("hazelcast:seda:end") > > .otherwise() > .log("...failed to add!"); > > Any clarification or further implementation is appreciated, > > -Doug > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Hazelcast-Configuring-Consumer-tp5749580.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >