camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TonyK <akindsc...@sfgmembers.com>
Subject Re: Null Body
Date Fri, 26 Apr 2013 14:03:03 GMT
Thanks for the quick response. I tried setting streamcache to true on the
route, but no luck. I believe it has something to do with the unmarshalling
to jaxb, if I throw an exception before the unmarshal, then the body
returned to the parent route is not null. If add a processor to my
onException, then I see data in the body, but I can't seem to pass it back
so that when I get to my aggregation strategy the data is gone... I've put
the routes below to try to give a little more context.


	<camelContext xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="defaultHandler" >
	
		<errorHandler id="defaultHandler" type="DefaultErrorHandler">
			<redeliveryPolicy redeliveryDelay="1000" maximumRedeliveries="0" />
		</errorHandler>
		
		<route id="REMOVETestEnvironmentWriteToQueue">
			<from uri="file:C:\\test\\from\\?noop=true&delay=40000" />
			<to uri="jms:ANN.NB.ILLUST.BATCH" />
		</route>
		
		<route id="IllustrationsBatch">
			<from uri="jms:ANN.NB.ILLUST.BATCH" />
			<camel:split strategyRef="IllustAggregationStrat"
parallelProcessing="true">
				<xpath>/TXLife/TXLifeRequest</xpath>

				<to uri="xslt:WrapTXLifeRequestInTXLife.xsl" />
				<inOut uri="jms:ANN.NB.ILLUST.INSURANCETECH.IN?           
                                                transferException=true
                                                &requestTimeout=120000" />
///This route is just calling a bean that returns xml from a file.

				<setHeader headerName="formDestination">
                                         
<constant>{{formInstanceRequest.imagingFormPath}}</constant>
                                </setHeader>
				<to uri="xslt:InsTechResultToFormRequest.xsl" />
				<inOut uri="jms:ANN.NB.ILLUST.IMAGE.IN?transferException=true
                                                                                     
&requestTimeout=120000" />
				
			</camel:split>
		</route>
	</camelContext>

----------------------------------------------------------------------------------
	<camelContext xmlns="http://camel.apache.org/schema/spring">
		<dataFormats>
			<jaxb id="jaxb" contextPath="com.sfg.annuity.model.acord" />
		</dataFormats>

		<onException>
			<exception>java.lang.Exception</exception>
			<redeliveryPolicy maximumRedeliveries="1"
				backOffMultiplier="2" useExponentialBackOff="true" />
		</onException>

		<route id="ImagingRoute">
			<from
uri="jms:ANN.NB.ILLUST.IMAGE.IN?transferException=true&requestTimeout=120000"
/>
			<unmarshal ref="jaxb" /> 
			<to uri="{{endpoint.ImagingService}}" /> // This is just calling a bean
that throws an IOException
			<marshal ref="jaxb" />
		</route>
	</camelContext>



--
View this message in context: http://camel.465427.n5.nabble.com/Null-Body-tp5731568p5731619.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message