Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-26 Thread Willem Jiang
Wayne Keenan wrote: On Mon, Jan 25, 2010 at 4:25 AM, Willem Jiang wrote: Hi Wayne, I'm not sure we need to populate the headers for the HTTP PUT method. Can you point me out if there any specification for it ? Willem I looked at the RFC's for http 1.0 and 1.1, to me it doesn't appear to p

Re: XML request to CSV conversion

2010-01-26 Thread Willem Jiang
Hi You may take a look at this soap DataFormat[1], and csv DataFormat[2] As soap DataFormat is working in progress, you can add your requirement when you try it. [1]https://issues.apache.org/activemq/browse/CAMEL-2396 [2]http://camel.apache.org/csv.html Willem lekkie wrote: Hi guys, I'd like

Re: XStream and forcing ISO-8859-1 Encoding

2010-01-26 Thread Willem Jiang
It's a bug of XStream DataFormat. I created a JIRA[1] for it. [1] https://issues.apache.org/activemq/browse/CAMEL-2407 Willem jonathanq wrote: I should also mention - this is Camel 2.0.0 jonathanq wrote: I am trying to unmarshal an xml message from JMS that was originally marshaled using Xs

Re: Grails/Camel - pass queue message to HTTP POST?

2010-01-26 Thread kitplummer
Thanks Claus, that works. But, I need to handle the returned contents from my Route. Just figured I needed the Exchange to get at the contents as a String. Kit Claus Ibsen-2 wrote: > > Can you not just do a > > from(seda).to(http); > > The camel http component will automatic use POST if no

XML request to CSV conversion

2010-01-26 Thread lekkie
Hi guys, I'd like to convert a soap request to a csv file. Also, I'd like the element names to to be the headers for the csv data. kr. -- View this message in context: http://old.nabble.com/XML-request-to-CSV-conversion-tp27329468p27329468.html Sent from the Camel - Users mailing list archive a

Re: XStream and forcing ISO-8859-1 Encoding

2010-01-26 Thread jonathanq
I should also mention - this is Camel 2.0.0 jonathanq wrote: > > I am trying to unmarshal an xml message from JMS that was originally > marshaled using Xstream. > > When I create the message I am doing this: > > XStream xstream = new XStream(new DomDriver("ISO-8859-1")); > template.sendBody(x

XStream and forcing ISO-8859-1 Encoding

2010-01-26 Thread jonathanq
I am trying to unmarshal an xml message from JMS that was originally marshaled using Xstream. When I create the message I am doing this: XStream xstream = new XStream(new DomDriver("ISO-8859-1")); template.sendBody(xstream.toXml(myObject)); On the consuming process I have this in my route: fr

Re: Grails/Camel - pass queue message to HTTP POST?

2010-01-26 Thread Claus Ibsen
Can you not just do a from(seda).to(http); The camel http component will automatic use POST if no uri parameters. You should also be able to configure in the uri for the http endpoint that it should use POST On Tue, Jan 26, 2010 at 2:37 PM, kitplummer wrote: > > Getting closer: > > import org.

Re: recipientList + AggregationStrategy

2010-01-26 Thread Claus Ibsen
On Tue, Jan 26, 2010 at 5:40 PM, mcrive wrote: > > Hi Claus, > I am sorry but I don't understand what you mean... > > would it be possible for you to send me a sample (just the route) > Sorry I am too busy to create such a sample. I think you just need to play a bit more with it and try to invoke

Re: Recover value of variable in camel

2010-01-26 Thread Claus Ibsen
On Tue, Jan 26, 2010 at 5:46 PM, titexe wrote: > > Hello, > > how I can recover the value of the variable%ACTIVEMQ_HOME%  in my route > camel? > This is not specific to Camel. Try googling for how to get environment variables in Java. I think its just a java.lang.System.getenv() or something like

Recover value of variable in camel

2010-01-26 Thread titexe
Hello, how I can recover the value of the variable%ACTIVEMQ_HOME% in my route camel? Thank you in advance best regards, titexe -- View this message in context: http://old.nabble.com/Recover-value-of-variable-in-camel-tp27325821p27325821.html Sent from the Camel - Users mailing list archive

Re: recipientList + AggregationStrategy

2010-01-26 Thread mcrive
Hi Claus, I am sorry but I don't understand what you mean... would it be possible for you to send me a sample (just the route) Claus Ibsen-2 wrote: > > Hi > > Interesting use case you got. > I got to go over this again at another time. I am at a business > convention in the US which means I a

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread Jon Anstey
Here is some AMQ documentation about that http://activemq.apache.org/enterprise-integration-patterns.html On Tue, Jan 26, 2010 at 12:57 PM, Claus Ibsen wrote: > On Tue, Jan 26, 2010 at 5:21 PM, BenXS wrote: > > > > Hi Ashwin, > > thank you for response. But this procedure seems to me rather > l

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread Claus Ibsen
On Tue, Jan 26, 2010 at 5:21 PM, BenXS wrote: > > Hi Ashwin, > thank you for response. But this procedure seems to me rather long-winded. > > Do I really need Spring? > Are there really no pre-compiled, ready-to-use *.jars of Camel? > > What I expect is a camel.jar which I have to put into the tar

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread Stan Lewis
ActiveMQ ships with camel-core.jar already, if you take a look at the default activemq.xml file from a fresh ActiveMQ install you'll see there's a camel context configured with a couple example routes, so if you want you can have your routes in-process in the broker. Hope that helps! On Tue, Jan

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread BenXS
Hi Ashwin, thank you for response. But this procedure seems to me rather long-winded. Do I really need Spring? Are there really no pre-compiled, ready-to-use *.jars of Camel? What I expect is a camel.jar which I have to put into the target applications (here: ActiveMQ) "lib" subdirectory. Second

Re: Grails/Camel - pass queue message to HTTP POST?

2010-01-26 Thread kitplummer
Getting closer: import org.apache.camel.Exchange import org.apache.camel.Processor import org.apache.camel.Message class JobRoute { def configure = { println "Setting JobRoute Camel Router..." from("seda:my.queue") { Exchange exchange = template.send("http://local

Re: Embedded web console

2010-01-26 Thread Claus Ibsen
You may have something misconfigured in your web.xml. The error talks about Servlet vs. SerlvetFilter which are two different things. On Mon, Jan 25, 2010 at 9:38 PM, mistrz wrote: > > Following this pattern, when starting jetty I get this exception: > > > [                   Main Thread] Conte

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-26 Thread Claus Ibsen
On Tue, Jan 26, 2010 at 11:16 AM, huntc wrote: > > Hi Claus, > > I have now created a Cookbook recipe explaining this use case. > > http://cwiki.apache.org/confluence/display/CAMEL/Fine+Grained+Control+Over+a+Channel > I like the recipe, great work. > Kind regards, > Christopher > -- > View this

Re: Aggregator's not returning combined exchanges, only returns last exchange

2010-01-26 Thread Willem Jiang
Hi Can you create a JIRA and submit a small test case with it? It will make us easier to dig your issue. Willem lekkie wrote: Guys, can u help out? lekkie wrote: I tried this but it did not work. Something strange however, happens. I noticed if I use the default aggregationStrategy, the lo

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread Ashwin Karpe
Hi, Here is a quick response to the general steps. a> Start the ActiveMQ Broker. It typically comes up on tcp://localhost:61616 b> Check out the example /examples/camel-example-spring-jms. This example is available in the 1.6 version of Camel. c> Build and deploy into a Spring contain

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-26 Thread Wayne Keenan
On Mon, Jan 25, 2010 at 4:25 AM, Willem Jiang wrote: > Hi Wayne, > > I'm not sure we need to populate the headers for the HTTP PUT method. > Can you point me out if there any specification for it ? > > Willem > > > I looked at the RFC's for http 1.0 and 1.1, to me it doesn't appear to preclude us

Re: Grails/Camel - pass queue message to HTTP POST?

2010-01-26 Thread Wayne Keenan
On Tue, Jan 26, 2010 at 5:25 AM, kitplummer wrote: > > Ok, just thinking at this point...and I don't yet understand Camel well > enough. So, I need some insight. > > What I want to do is use Camel to facilitate some back-end business logic > in > my Grails app. Here's the general idea. From my

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-26 Thread huntc
Hi Claus, I have now created a Cookbook recipe explaining this use case. http://cwiki.apache.org/confluence/display/CAMEL/Fine+Grained+Control+Over+a+Channel Kind regards, Christopher -- View this message in context: http://old.nabble.com/requestBodyAndHeader-and-HEADER_CLOSE_SESSION_WHEN_COM

Re: Aggregator's not returning combined exchanges, only returns last exchange

2010-01-26 Thread lekkie
Guys, can u help out? lekkie wrote: > > I tried this but it did not work. > > Something strange however, happens. I noticed if I use the default > aggregationStrategy, the log:Response1 will be logged (as null), however > if I changed it to myAggregatorStrategy, it never prints the log (let >