Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread Claus Ibsen
On Thu, Jun 4, 2009 at 5:26 AM, stevenmaring wrote: > > Clause, > > I just tried the 2.0-SNAPSHOT released earlier today and got the same thing. There is something wrong with the Apache snapshot maven repo. Its maven metadata is wrong. It wrongly says the last version is a version from 9th april.

Re: RouteBuilder: how to get the body and to manually send a response?

2009-06-03 Thread Willem Jiang
Hi, 1) Since the servicemix-camel component store the XML message as Source.class, you can't get XML String by calling toString() method. But you can leverage the Camel's converter[1] to get XML String. exch.getIn().getBody(String.class) 2) If you want to send the response back , you need to s

Re: all messages go to dead letter channel

2009-06-03 Thread Willem Jiang
Hi, Which version of Camel are you using? Can you try the last released Camel 1.6.1 ? I just check the latest code repository, we did some improvements on the LogFormatter and you should not get ClassCastException here :). Willem Ethan Aubin wrote: > Hi, I'm trying to write a camel component wh

Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread stevenmaring
Clause, I just tried the 2.0-SNAPSHOT released earlier today and got the same thing. May I ask for a specific example of what you mean by "use regular setter IoC using spring bean property to set the camel producer template"? Thanks, Steve Maring Claus Ibsen-2 wrote: > > Hi > > I think you

Re: Using camel to send and alter MapMessage to a JMS queue

2009-06-03 Thread Willem Jiang
I don't find a way to manipulate the MapMessage with Spring XML file. But you can leverage the Processor to get back the control :) ${in.body["somefield"] == "true"}

Re: Set timeout of an http endpoint

2009-06-03 Thread Willem Jiang
Hi, The last one which sets the httpClient's parameter in the URI should work. I checked the HttpClientParams java doc, there is no properties of connectionTimeout, I think you need to try to use connectionManagerTimeout instead of connectionTimeout. BTW, In Camel 2.0, we have the parameter valid

Re: creating a pipeline starting with a WebServiceProvider

2009-06-03 Thread Willem Jiang
Hi Steve The solution depends on what you want to do with the soap message. If you just want to leverage the Tomcat servlet transport and don't want to get touch with SOAP message, you don't have to use the WebServiceProvider. You can create the camel context with the Pipeline that you want creat

creating a pipeline starting with a WebServiceProvider

2009-06-03 Thread stevenmaring
I like the simplicity afforded by the camel transport with CXF. However, I'm stuck with Tomcat instead of Jetty, so from what I understand I need to create a WebServiceProvider and use the servlet transport. My end goals is basically a pipeline that looks like this: --> web service --> jms queu

Set timeout of an http endpoint

2009-06-03 Thread LeRoy Michel
Hi, I would like to set the timeout of an http connection using camel http component. I read the the Camel http guide (http://camel.apache.org/http.html) and I've tried the following but it doesn't work: public void process(Exchange exchange) throws Exception { Map headers = exchan

Using camel to send and alter MapMessage to a JMS queue

2009-06-03 Thread Tim83
Hi all, I'm having some troubles sending a MapMessage to a activemq queue using camel 1.6. basicly what I'm trying to achieve is I have an incoming map message, that first needs to go to service A, then to service B (optional). Once the message has been processed by service A, some fields in th

Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread Claus Ibsen
Hi I think you are stuck by the bug CAMEL-1663 that causes dependency injection with annotations to not work if you mix annotations from Camel with others. So use regular setter IoC using spring bean property to set the camel producer template. You can try the 2.0m2 when it comes out with the fix

Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread stevenmaring
I tried putting the template inside the camelContext but it didn't seem to help. I've now read thru a good chunk of the manual, which certainly did wonders for my understanding of what is going on, but I'm still scratching my head over this NullpointerException. The logs don't seem to be yelling

Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread Martin Gilday
Sorry if this appears twice, my first attempt got rejected as spam :) Claus, Do you have to put the template inside the context? Is this a 2.0 change? I've always placed it outside. As you can't define a context ref it seemed effectively singleton and so didn't matter where you created it. Thi

Just a test, disregard me

2009-06-03 Thread Claus Ibsen
Hi Just a test as I get bounced back mails. -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus