How to define camel blueprint connection factory



I'm new to camel and active mq . i'm using jboss fuse and i have crerated a queue in fuse console , and i have made a camel blue print with osgi in jboss developer studio . in the blue print i have slite csv records and send the recored one by one to queue. but i'm getting connectionFactory must be specified error . can any one fix me ???



<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://ift.tt/KL6wHM"
xmlns:cm="http://ift.tt/1pihume"
xmlns:ext="http://ift.tt/1tMIjCg"
xmlns:amq="http://ift.tt/1dv78M9"
xmlns:blueprint="http://ift.tt/KL6wHM"
xmlns:xsi="http://ift.tt/ra1lAU"
xmlns:camel="http://ift.tt/1asmeRt"
xsi:schemaLocation="
http://ift.tt/KL6wHM http://ift.tt/KL6wY3
http://ift.tt/1asmeRt http://ift.tt/1jCZQaH">

<bean id="transactionManager"
class=
"org.springframework.jms.connection.JmsTransactionManager">
<property name="connectionFactory" ref="jmsConnectionFactory"/>
</bean>

<bean id="jmsConnectionFactory" class=
"org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value=
"tcp://IYC6ITDT1:61616?maximumConnections=1000"/>
</bean>

<bean class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="jmsConnectionFactory"/>
<property name="transactionManager" ref="transactionManager"/>
<property name="transacted" value="true"/>
</bean>
<camelContext trace="false" id="blueprintContext" xmlns="http://ift.tt/1asmeRt">
<route>
<from uri="file:C:/Users/thomasalbert/workspace/uyirnokkam/input"/>
<unmarshal>
<beanio mapping="isha/mdm/uyn/participant-datamapping.xml" streamName="participantFile"/>
</unmarshal>
<split>
<simple>${body}</simple>
<marshal>
<json library="Jackson"/>
</marshal>
<convertBodyTo type="java.lang.String"/>
<log message="This is the JSON record: ${body}"/>
<to uri="jms:queue:Thomas"/>
</split>
</route>
</camelContext>
</blueprint>

No comments:

Post a Comment