camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsaran5 <>
Subject Camel
Date Sun, 13 Nov 2016 03:31:29 GMT

Getting the response back from apple as 

Need to validate as baddevice token and need to write into the queue
but some how it is directly going to the onException
can someone help on this.

Code snippet as follows.
			<setHeader headerName="exception">
			<log message="
Service call" />
Service call" /> 
			<log loggingLevel="ERROR" message="Writing to error Queue -
${header.exception}" />
			<to uri="jms:queue:{{AmqEnv}}.{{messagingErrorQueue}}" />

<route id="iOSPriceDrop">
			<from uri="seda:iOSPriceDrop" />
			<log message="ios messsage" />
			<log message="Enterign IOS PRiceDrop log testing" />
			<camel:setHeader headerName="CamelApnsMessageType">
			<camel:setHeader headerName="appName">
				<xpath resultType="java.lang.String">/Notification/appId</xpath>
			<camel:setHeader headerName="apns-topic">
			<camel:setProperty propertyName="DeactivateApnsTokens">
				<xpath resultType="java.lang.String">/Notification/deviceTokens</xpath>
			<camel:setHeader headerName="CamelApnsTokens">
				<xpath resultType="java.lang.String">/Notification/deviceTokens</xpath>
			<log message="Testing1 ${body}" />
			<camel:process ref="xmlToJsonProcessorForIos" />
			<log message="Got ${headers} and ${body}" />
					<simple>${in.header.appName} == 'Carscom'</simple>
uri="log:org.apache.camel.component.apns?showAll=true&amp;multiline=true" />
					<log message="sending iOS notification" />
					<to uri="direct:ms_apnsSendNotification" />
					<setHeader headerName="response">
							<simple>${bodyAs(String)} contains 'reason'</simple>
							<log message=" Coming Error section" />
							<log loggingLevel="ERROR"
								message="Writing to sarav Queue - ${header.response}" />
							<to uri="jms:queue:{{AmqEnv}}.{{messagingErrorQueue}}" />
							<log message="notification sent to error queue" />
							<log message=" Coming Otherwise section" />
							<log message="notification sent" />
					<log message="Application APNS not added to camel context in price
drop" />

View this message in context:
Sent from the Camel Development mailing list archive at

View raw message