camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sanjay.gautam" <>
Subject Exchange has SOAPMessage want to Send to JMS Topic
Date Fri, 15 Jan 2016 03:02:14 GMT
I am new to the Camel world and what I am trying to do is as follows. 

1. There is a route which is Servlet Component  which is called by external
2. MyServlet CamelComponent Reads the incoming exchange and creates the
3. In Next Step I want to send the SOAP message to JMS Topic. 

 <bean id="jmsConnectionFactory" 
   		<constructor-arg  name="url" value="tcp://localhost:9161" />
      	<constructor-arg  name="user" value="admin" />
        <constructor-arg  name="password" value="password" />

 <bean id="jmsConfig" 
   <property name="connectionFactory" ref="jmsConnectionFactory"/>
   <property name="concurrentConsumers" value="1"/>

<bean id="activemq"
   <property name="configuration" ref="jmsConfig"/>

At this point I Have a Exchange with SOAPMessage into it and as per the SOAP
documentation I should be able to send SOAP message via JMS , but as per
document  JMS can take only few types ?
I was expecting that CAMEL might have some internal Converter like  
MessageTransformer.SOAPMessageIntoJMSMessage(soapMessage, session);
which help in converting the message . I tried Spring Converter but it
doesnt not convert actually. 

<route id="jmsroute">
        <from   uri="direct:jmsDirect"/>
        <log message=" jmsDirect  .... "/>
pattern="InOnly" />
        <log message=" Processing Done Going to Marshal The Object  .... "/>
            <log message="Exception occured ${exception.message}"/>
            <to uri="bean:exceptionHandler"/>
        <log message="Route staxBroadcastRequestProcessRoute COMPLETED. ....
" loggingLevel="DEBUG"/>

Please suggest me any option , I can surely unmarshel and get the details
form the SOAP message but i dont want to do that as that is not our
requirement. we dont need to looking into the message 

Sanjay G 

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

View raw message