On Wed, Jan 28, 2009 at 10:39 AM, pevgen <pev...@km.ru> wrote: > > > pevgen wrote: >> >> Hello, all. >> >> I wrote a route into my spring-config file : >> >> .... >> <bean id="myProcessorOut" class="ru.transsys.testcxf.MyProcessorOut"/> >> >> <camel:camelContext xmlns="http://activemq.apache.org/camel/schema/spring" >> id="camel"> >> >> <endpoint id="routerEndpoint" uri="cxf:bean:routerEndpointConfig"/> >> >> <route errorHandlerRef="deadLetterErrorHandler"> >> <from ref="routerEndpoint"/> >> <to uri="http://localhost:8889/app"/> >> <multicast parallelProcessing="true"> >> <to uri="activemq:queue:log.out.A?requestTimeout=0"/> >> <process ref="myProcessorOut"/> >> </multicast> >> </route> >> >> </camel:camelContext> >> ... >> >> My problem is an empty string here (the variable "body" = "") : >> >> String body = exchange.getIn().getBody(String.class); >> >> into "ru.transsys.testcxf.MyProcessorOut", but a log-AMQ-message have this >> http-response. >> And type of exchange is CxfExchange. >> >> Haw can a get http-response in my processor ? >> >> Thanks, >> Evgeny >> >> > > It's a strange situation, but if i commment "<to > uri="activemq:queue:log.out.A?requestTimeout=0"/>", then i get a normal > string-request from the http-EP in my Processor... > > I don't understand it... I dont have time to look into it, but I could suspects MEP issues. The CXF is a InOut but the JMS should be an InOnly (not wait for reply)
Could you try adding exchangePattern=InOnly as URI parameter to your AMQ? Also the new MEP change builders can come handy (new in Camel 1.6 or 2.0) http://camel.apache.org/request-reply.html > > Evgeny > > -- > View this message in context: > http://www.nabble.com/trouble-with-a-http-body-in-my-processor-tp21688101s22882p21702583.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/