passing email messages to camel:seda endpoint causes error

2012-10-09 Thread suralk
Hi All, I have a route that passes mail messages to a seda endpoint. However, when I try to consume this message from seda, I get an exception which says: org.apache.camel.RuntimeCamelException - Error populating the initial mail message attachments. this is how the two routes look like: from("im

Re: how to dynamically set the jms queue name

2012-10-04 Thread suralk
Hi Raul, Thank you very much. It worked! Here's my code, if somebody gets the same question in the future: the custom RouteBuilder class: public class MyRouteBuilder extends RouteBuilder { String routeId; public MyRouteBuilder(String routeId) { thi

Re: how to dynamically set the jms queue name

2012-10-04 Thread suralk
recipient list does not work. It is the consumer (from("jms:" +)) that should be defined dynamically. And the queue name is not fetched from a file. It is decided by the output of another route. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-dynamically-set-the-jms-qu

how to dynamically set the jms queue name

2012-10-03 Thread suralk
Hi All, This is my use case: I have several camel contexts deployed independently. I use camel zookeeper component to dynamically assign unique ids to these contexts: static String routeId; from("direct:start") .to(ExchangePattern.InOut, "zookeeper://127.0.0.1:2181/routers/router?create=true&cre

how to share variables among different exchanges

2012-10-03 Thread suralk
Hi All, I have camel zookeeper that generates a unique node id for me, and I want to use this id as the name of the jms queue in a different route. I tried to use a static variable to store this id as shown below, but it is not working (converting this static variable to an instance variable also d

Re: how to access a SOAP message part inside a route

2012-10-02 Thread suralk
Hi Raul, Thanks a lot. How about the option of delegating this work to a bean? (like what you have recently proposed in another thread). Can you please point me to an example of using a bean for such work to access raw soap message. -- View this message in context: http://camel.465427.n5.nabble

Re: how to access a SOAP message part inside a route

2012-10-02 Thread suralk
Hi Christian, Sorry I just saw your response. before that, I sent the below reply to another thread asked by another member regarding the same problem. I am pasting it here again: I am using the Camel CXF component with the MESSAGE dataFormat (using PAYLOAD throws an exception, so have to stick wi

Re: Getting a node from an XML using camel-cxf

2012-10-02 Thread suralk
Hi Christian, I am using the Camel CXF component with the MESSAGE dataFormat (using PAYLOAD throws an exception, so have to stick with MESSAGE format with respect to this particular web service). Similar to balkishore, I do not want to set any header based on the extracted soap element. Rather, I

how to access a SOAP message part inside a route

2012-10-01 Thread suralk
Hi All, I have a route that gets some data from a remote we service and writes to a file: from("file:src/data?noop=true") .to("cxf://http://www.webservicex.net/stockquote.asmx?wsdlURL=src/main/resources/META-INF/stockquote.wsdl&serviceName={http://www.webserviceX.NET/}StockQuote&portName={http://

how to use a jdbc endpoint

2012-10-01 Thread suralk
Hi All, I am trying to use a SQL Server database in a camel route using jdbc endpoint as follows: from("timer://foo?period=6").setBody(constant("select * from customer")).to("jdbc:microsoft:sqlserver://SOBSQL01;DatabaseName=MyDatabase") .to("file://data/inbox?fileName=t.txt")

Re: implementing route filter proeprties.

2012-09-11 Thread suralk
thanks a lot for the confirmation :) -- View this message in context: http://camel.465427.n5.nabble.com/implementing-route-filter-proeprties-tp5719082p5719159.html Sent from the Camel - Users mailing list archive at Nabble.com.