You just need to make sure the message body is right, then you can route the request to the endpoint by return the URI string. It's hard to setup camel-cxf endpoint just by using some simple String, because you may need to configure the CXF endpoint through Spring or Blueprint.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Wednesday, July 3, 2013 at 5:04 AM, Singh, Surya Prakash wrote: > Hi, > > > How do I send an Object to a cxf route inside a Dynamic route, > > For ex: > public String route(Exchange exchange { > if (requestStatus instanceof RequestPending) { > return "cxf://...."; // Need to send an object to this cxf route. > } > } > > Outside of an dynamic route I could have sent this using the following, but I > am not sure how to do that inside a dynamic router. > template.requestBody("direct:start", new Object[]{requests, null}, > MessageContentsList.class); > > Appreciate any help of this > Thank you! > Regards, > > ************************************************************************* > This e-mail may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender immediately > and then delete it. > > TIAA-CREF > *************************************************************************