camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtod09 <m...@thetods.net>
Subject Re: Camel instanciated as null
Date Tue, 28 Mar 2017 01:58:01 GMT
I cleaned this up a bit it loads without any errors but does not run anyone
have any ideas why this would fail?

<?xml version="1.0" encoding="UTF-8"?> 
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0"
          
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
		   
	<bean id="myDeadLetterErrorHandler"
class="org.apache.camel.builder.DeadLetterChannelBuilder">
		<property name="deadLetterUri" value="jms:queue:dead"/>
		<property name="redeliveryPolicy" ref="myRedeliveryPolicyConfig"/>
	</bean>

	<bean id="myRedeliveryPolicyConfig"
class="org.apache.camel.processor.RedeliveryPolicy">
		<property name="maximumRedeliveries" value="3"/>
		<property name="redeliveryDelay" value="5000"/>
	</bean>

	<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
		<property name="connectionFactory">
			<bean
class="org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory">
				<property name="brokerURL"
value="failover:(tcp://ec2-XX-XXX-238-177.compute-1.amazonaws.com:61616,tcp://ec2-XX-XXX-6-199.compute-1.amazonaws.com:61616)?maxReconnectAttempts=0"/>
				<property name="userName"  value="xxxxx" />
				<property name="password"  value="xxxxx" />
			</bean>
		</property>
	</bean>

	<bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy"> 
		<property name="maximumRedeliveries" value="0" /> 
	</bean>

	<camelContext id="msgRouter1"
xmlns="http://camel.apache.org/schema/blueprint">		
		<route errorHandlerRef="myDeadLetterErrorHandler">
			<from uri="jms:queue:esb.*"/>
			<doTry>
				
				<setHeader headerName="Route1">
					<xpath logNamespaces="false"
resultType="String">/km:FMIMessage/km:Header/km:Route/text()</xpath>
				</setHeader>
				<recipientList delimiter="false">
					<header>Route1</header>
				</recipientList>
				<doCatch>
					<exception>org.apache.camel.ValidationException</exception>
					<onWhen>
						<simple>${exception.message}</simple>
					</onWhen>
					<to uri="jms:queue:invalid.schema"/>
				</doCatch>
			</doTry>
		</route>
	</camelContext>
	
</blueprint>





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-instanciated-as-null-tp5796043p5796465.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message