Re: Aggregator's old Exchange returns null

2010-01-22 Thread lekkie
Thanks. lekkie wrote: > > I have a custom aggregator set up. The custom aggregator combines the > exchanges of an old and new one and returns them as one. > > However, when I log the old exchange to the ESB log file, it returns null. > > See my snippet below > > . > > > >

Re: Jetty Security Handler

2010-01-22 Thread Claus Ibsen
Hi Do you send directly to the endpoint of your custom component? Custom OnCompletion is triggered when you use a route. On Thu, Jan 21, 2010 at 4:30 PM, SwenVogel wrote: > > Hi, > > i created a customer jetty security handler and configured the spring > configuration file accordingly. > In th

Re: camel-quickfix example

2010-01-22 Thread Claus Ibsen
Hi Get the attention of Charles Moulliard as he works on that component and with FIX etc. On Thu, Jan 21, 2010 at 12:03 PM, beat glattfelder wrote: > > Hey camel riders > > I have tried the PassivefixGateway example in the test source, but it did > not behave as expected. Though it's supposed r

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

2010-01-22 Thread lekkie
Hi, I want to combine messages from 2 different exchanges into a single exchange, from the EIP patterns aggregation strategy seems to be right pattern to use. However, after reading the doc (http://camel.apache.org/aggregator.html), I followed the instructns but my aggregation strategy only retu

Re: Jetty Security Handler

2010-01-22 Thread SwenVogel
Hi, i use the send() method of the producer template, like in the code snippet from the first post. Means "Custom OnCompletion is triggered when you use a route." that when i use a standard component for example "file" that the GenericFileOnCompletion is triggered? I thought that a component is

Re: Jetty Security Handler

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 10:29 AM, SwenVogel wrote: > > Hi, > > i use the send() method of the producer template, like in the code snippet > from the first post. > > Means "Custom OnCompletion is triggered when you use a route." that when > i use a standard component for example "file" that the > G

Re: FileConsumer move a file to wrong destination.

2010-01-22 Thread ariablu
Thank you for reply. Next try, using Apache Camel camel-2.2-SNAPSHOT and Spring, route: File -> Processor -> (cxf) -> Log When ... /_work/test/from/1.txt If I run test case, 1.txt file was moved to /_work/test/backup/20100122 (not directory!) But I want /_work/test/backup/20100

Re: Jetty Security Handler

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 10:29 AM, SwenVogel wrote: > > Hi, > > i use the send() method of the producer template, like in the code snippet > from the first post. > > Means "Custom OnCompletion is triggered when you use a route." that when > i use a standard component for example "file" that the > G

Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Andy Bourke
Hi all, I am new to camel and have hit a problem that I hope someone can help me with. I have a route that looks for a file in a directory => unmarshals the file using => transforms the output from the unmarshal (which is List>) to a List of data objetcs => passes the List of data objects to a

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

2010-01-22 Thread Stan Lewis
Can you post what you're doing in your aggregation strategy? On Fri, Jan 22, 2010 at 4:05 AM, lekkie wrote: > > Hi, > > I want to combine messages from 2 different exchanges into a single > exchange, from the EIP patterns aggregation strategy seems to be right > pattern to use. > > However, after

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

2010-01-22 Thread Willem Jiang
Hi Wayne, I commit a patch of CAMEL-2386, please check out the last camel-2.2-SNAPSHOT to verify it :) Willem Willem Jiang wrote: I just did a quick test on camel trunk, you can get the URL parameters by using the exchange.getIn().getHeader(Exchange.HTTP_QUERY) When you post the binary data

Re: FileConsumer move a file to wrong destination.

2010-01-22 Thread Claus Ibsen
run test case, 1.txt file was moved to > /_work/test/backup/20100122 (not directory!) > > But I want > /_work/test/backup/20100122/1.txt > > > [[test case]] >  http://camel.apache.org/schema/spring&qu

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 1:20 PM, Andy Bourke wrote: > > Hi all, > > I am new to camel and have hit a problem that I hope someone can help me > with. > > I have a route that looks for a file in a directory => unmarshals the file > using => transforms the output from the unmarshal (which is > List>

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

2010-01-22 Thread lekkie
See code below: package org.tempuri; import org.apache.camel.Exchange; import org.apache.camel.Header; import org.apache.camel.Message; import org.apache.camel.processor.aggregate.AggregationStrategy; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public cl

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Andy Bourke
If I understand it right, the multicast allows the same payload to be processed by multiple end points? If I remove the multicast then won't the second enpoint (in the now non-multicast pipeline) try to process the output from the first one? Claus Ibsen-2 wrote: > > On Fri, Jan 22, 2010 at 1:20

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 2:41 PM, Andy Bourke wrote: > > If I understand it right, the multicast allows the same payload to be > processed by multiple end points? If I remove the multicast then won't the > second enpoint (in the now non-multicast pipeline) try to process the output > from the first

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 2:47 PM, Claus Ibsen wrote: > On Fri, Jan 22, 2010 at 2:41 PM, Andy Bourke > wrote: >> >> If I understand it right, the multicast allows the same payload to be >> processed by multiple end points? If I remove the multicast then won't the >> second enpoint (in the now non-

Re: FTP Component - How to Disconnect?

2010-01-22 Thread Gunnar Hillert
Hi everybody, Thank you all for the light-speed-like response! Cheers, Gunnar Claus Ibsen wrote: Hi I have created the ticket https://issues.apache.org/activemq/browse/CAMEL-2391 And also implemented this new feature. There is a new option disconnect=true which will disconnect from the rem

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Andy Bourke
Please excuse my ignorance Claus, but I don't know what "log:foo" means, I have tried using it as you have written but I get an exception: org.xml.sax.SAXParseException: The prefix "log" for element "log:info" is not bound I have tried without using parallelProcessing="true" and the problem rem

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 3:27 PM, Andy Bourke wrote: > > Please excuse my ignorance Claus, but I don't know what "log:foo" means, I > have tried using it as you have written but I get an exception: > > org.xml.sax.SAXParseException: The prefix "log" for element "log:info" is > not bound > To use t

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

2010-01-22 Thread Stan Lewis
Hmmm, I tested your aggregator code as-is on 2.2-SNAPSHOT here and it works fine: 2010-01-22 09:41:18,444 [0: Batch Sender] INFO JoinStringAggregatorTest - New: Exchange[Message: one] 2010-01-22 09:41:18,444 [0: Batch Sender] INFO JoinStringAggregatorTest - old: Exchange[Message: one]

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Andy Bourke
> To use the log component you should just do > > http://camel.apache.org/log.html Ok, I've got it now. However, sending the output to the log rather than the file does not stop the rename issue. If it helps the actual error from the trace log is: org.apache.camel.component.file.GenericFileOp

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Claus Ibsen
On Fri, Jan 22, 2010 at 3:54 PM, Andy Bourke wrote: > > >> To use the log component you should just do >> > >> http://camel.apache.org/log.html > > Ok, I've got it now. However, sending the output to the log rather than the > file does not stop the rename issue. If it helps the actual error from

Re: FileConsumer move a file to wrong destination.

2010-01-22 Thread ariablu
ws got something mixed up with the path separators. > > > On Fri, Jan 22, 2010 at 11:31 AM, ariablu <962...@gmail.com> wrote: >> >> Thank you for reply. >> >> Next try, >> using Apache Camel camel-2.2-SNAPSHOT and Spring, >> rou

Re: FileConsumer move a file to wrong destination.

2010-01-22 Thread Claus Ibsen
ger.org.apache.camel.component.file=TRACE >> >> The should be detailed info how the filename is being evaluated. >> Wonder if Windows got something mixed up with the path separators. >> >> >> On Fri, Jan 22, 2010 at 11:31 AM, ariablu <962...@gma

Re: Renamer failing to rename 'From' File when using multiple endpoints via Multicast

2010-01-22 Thread Andy Bourke
> Which OS are you running? Could you write that down in the JIRA as well. I'm running Windows Vista Business Service Pack 2, 32 bit. I have put this in the Jira (#CAMEL-2394) https://issues.apache.org/activemq/browse/CAMEL-2394 -- View this message in context: http://old.nabble.com/Renamer-f

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

2010-01-22 Thread lekkie
This is what comes form my log: 11:38:31,370 | INFO | 0: Batch Sender | MyAggregationStrategy| rg.tempuri.MyAggregationStrategy 23 | new: Exchange[Message: StringSource[http://schemas.xmlsoap.org/soap/envelope/";><_ns_:RequestResponse xmlns:_ns_="http://services.locator/";>http://

Re: FileConsumer move a file to wrong destination.

2010-01-22 Thread ariablu
CE logging for this log name: >>> org.apache.camel.component.file >>> >>> eg if using log4j then its: >>> log4j.logger.org.apache.camel.component.file=TRACE >>> >>> The should be detailed info

Validate Xml

2010-01-22 Thread jpcook
Hi, I noticed you had a validation component for validating xml against xsds. But I wondered if there was a nice way to test if the message body was well formed xml. I have a scenario where I am pulling a xml feed via http but when the feed is unavailable you get back an html page which I also r

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

2010-01-22 Thread Stan Lewis
Instead of outBatchSize=2 did you try batchSize=2 maybe? Also does it perhaps work properly without that wiretap? On Fri, Jan 22, 2010 at 10:41 AM, lekkie wrote: > > This is what comes form my log: > > 11:38:31,370 | INFO  |  0: Batch Sender | MyAggregationStrategy            | > rg.tempuri.MyAg

Re: Validate Xml

2010-01-22 Thread Willem Jiang
Hi, I think you can do it with camel validation component. You can find more information about how to use it here[1] [1] http://camel.apache.org/validation.html Willem jpcook wrote: Hi, I noticed you had a validation component for validating xml against xsds. But I wondered if there was a ni

Re: requestBodyAndHeader and HEADER_CLOSE_SESSION_WHEN_COMPLETE

2010-01-22 Thread huntc
Hi guys, Turns out that I'm using MinaProducer and not MinaConsumer of course; MinaConsumer is the one that has the HEADER_CLOSE_SESSION_WHEN_COMPLETE logic and MinaProducer isn't so capable by the looks of it. I was hoping that stopping the template by calling its stop method would in turn caus