Re: Camel 2.7.2 in ServiceMix 4.3.0

2011-06-09 Thread Jean-Baptiste Onofré
Hi, I think that you still have Camel 2.7.0 bundle present. I advice to update the etc/org.apache.karaf.features.cfg file to update the featuresRepositories and featuresBoot with Camel 2.7.2. Regards JB On Fri 10/06/11 08:50 , ychawla wrote:: Hello All, I am trying to get Camel 2.7.2 runn

Camel 2.7.2 in ServiceMix 4.3.0

2011-06-09 Thread ychawla
Hello All, I am trying to get Camel 2.7.2 running in ServiceMix 4.3.0. I ran a series of OSGi installs: osgi:install -s mvn:org.slf4j/log4j-over-slf4j/1.6.1 osgi:install -s mvn:org.slf4j/slf4j-api/1.6.1 osgi:install -s mvn:org.apache.camel/camel-core/2.7.2 osgi:install -s mvn:org.apache.camel/cam

Re: Camel CXF & WS-Security

2011-06-09 Thread Mark Borner
Thanks for that. Is there anyway to add the WSS4JInInterceptor to the endpoint if I'm using cxf://someAddress[?options] instead of the cxf:bean:cxfEndpoint endpoint definition? Thanks, Mark Mark Borner Java Developer - ZStream Xpress From: Charles Moulliard To: users@camel.apache.org Date

Re: Deployment unit versioninfo

2011-06-09 Thread Charles Moulliard
Hi Preben, If this is the version info about the bundle that you are speaking about, you can have this info using the mbean osgi.core\bundleState\1.5 --> operation getVersion(id) where id is the number of the bundle. Regards, Charles On Thu, Jun 9, 2011 at 8:39 PM, preben wrote: > Wouldn't it

Re: Camel CXF & WS-Security

2011-06-09 Thread Charles Moulliard
Hi Mark, I have created one year an example in camel project available here : https://github.com/gnodet/camel/tree/trunk/examples/camel-example-reportincident-ws-security-osgi Regards, Charles Moulliard Apache Committer Blog : http://cmoulliard.blogspot.com Twitter : http://twitter.com/cmoull

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 19:54, Jim Talbut wrote: On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've

Re: Redelivery, Attach Exception cause to message

2011-06-09 Thread boday
hey Steve, I'm not aware of a way to do this with AMQ config alone, but I have done this in Camel to allow us to triage errored out messages, etc. I just added a processor in my onException() stmt to add headers to the JMS message prior to sending to an error queue... onException(Exception.class)

Camel CXF & WS-Security

2011-06-09 Thread Mark Borner
Does anyone have any examples of how to configure a Camel CXF endpoint to use WS-Security? I need to secure an outbound and inbound SOAP message. Thanks, Mark Mark Borner Java Developer - ZStream Xpress This email is intended for the named recipient only. It may contain information which

Error Handling on IMAP Component

2011-06-09 Thread nap
Hi, We have a route that is consuming from an IMAP Component. How can we catch errors that occurs from the IMAP Component in the case that the mail server is down or the credentials have changed? Thanks, Nap -- View this message in context: http://camel.465427.n5.nabble.com/Error-Handling-on-

Re: check remote folder using ftp

2011-06-09 Thread boday
see http://camel.apache.org/ftp2.html camel-ftp basically do this would process each file separately... from("ftp://foo@myserver?password=secret&ftpClient.dataTimeout=3";) .process(new MyProcessor()); or this to process them in batches...see http://camel.apache.org/aggregator2.html aggreg

Re: read all files in folder

2011-06-09 Thread Claus Ibsen
There is a complete from batch consumer option on aggregator so you dont need to use size or timeout. See the documentation On Thursday, June 9, 2011, boday wrote: > use an  http://camel.apache.org/aggregator2.html aggregator  to combine these > into a single exchange (based on size and/or timeo

Re: read all files in folder

2011-06-09 Thread boday
use an http://camel.apache.org/aggregator2.html aggregator to combine these into a single exchange (based on size and/or timeout) from("sftp:...") .aggregate(constant(true)).completionSize(10).completionTimeout(1L).groupExchanges() .process(new MyProcessor()); fachhoch wrote: > > I am try

RE: Complete exchange from file parsing before parsing complete

2011-06-09 Thread Joe White
Ah cool. Thanks. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Thursday, June 09, 2011 2:11 PM To: users@camel.apache.org Subject: Re: Complete exchange from file parsing before parsing complete Splitter in streaming mode and return an iterator from your bean.

RE: Complete exchange from file parsing before parsing complete

2011-06-09 Thread boday
hey Joe, if you need to send out fragments as they are parsed, then you can use a http://camel.apache.org/producertemplate.html ProducerTemplate from your parser class (created from the exchange, etc)... from("file:inbox") .bean(MyFileParser) class MyFileParser { public void parse(Exchange

Re: Complete exchange from file parsing before parsing complete

2011-06-09 Thread Claus Ibsen
Splitter in streaming mode and return an iterator from your bean. The the splitter runs on th fly On Thursday, June 9, 2011, Joe White wrote: > In that setup wouldn't "MyFileParser" have to finish parsing before the > split occurred? > > I'd like to be able to multicast the objects out to queues

read all files in folder

2011-06-09 Thread fachhoch
I am trying to read files from a remote folder using sftp, I added a processor to my consumer. The processor is getting called based on number of files , If the remote folder has 4 files the processor is called 4 times each time with a file , I want the processor to be called once with all the fi

RE: Complete exchange from file parsing before parsing complete

2011-06-09 Thread Joe White
In that setup wouldn't "MyFileParser" have to finish parsing before the split occurred? I'd like to be able to multicast the objects out to queues as they are generated before the whole file is parsed in a spring configuration. In the example below Recon835Parser has code to publish to the dispatc

Re: Complete exchange from file parsing before parsing complete

2011-06-09 Thread boday
just have your parser output a List and use a splitter to queue them separately...I think something like this is what you are looking for... from("file:inbox") .bean(MyFileParser) .split() .to("activemq:queue:myQueue"); then, you can do multi-threaded processing from that queue... from("ac

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've also tried on Windows 7 and that works

Deployment unit versioninfo

2011-06-09 Thread preben
Wouldn't it be a nice feature to have versioninfo from the deployment unit (jar or war) being exposed via jmx, so you would be able to see which versions currently is running on your system ? I was thinking this could be a managed attribute on camelContext MBean. I'm just brainstorming. Any though

Re: File Poller

2011-06-09 Thread AnujK
Hi guys, this works, but what if I would like my standalone application to end gracefully after the camel context has been shutdown without using the control-c option. Using this Main.run() approach keeps the VM running forever (even after the camelcontext) has been shutdown. Is there a way to e

RE: http not cleaning up tmp files when exchange is stopped

2011-06-09 Thread Jason Burkhardt
Hate to dredge up an old thread but I'm seeing this same behavior in 2.6. Note: I am not calling stop or anything. This route processes a message from JMS, calls http, processes the result and publishes it to JMS again. This ends up writing tmp files with the soap response to /tmp/camel-tmp-wha

check remote folder using ftp

2011-06-09 Thread fachhoch
I want to check a folder in a remote server using ftp and if it has any filescall my processor with the files passed to my processor so that I can read them.Please suggest me how . -- View this message in context: http://camel.465427.n5.nabble.com/check-remote-folder-using-ftp-tp4473453

Complete exchange from file parsing before parsing complete

2011-06-09 Thread Joe White
I have a route setup with a file endpoint that processes large files and generates thousands of individual objects from those files. Right now i have a route with the parser first and then downstream processing on the batch of individual objects. I would like to be able to multicast the individ

Re: Splitter StopOnException doesn't forward the exception on the Exchange

2011-06-09 Thread Claus Ibsen
I have created a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-4080 On Thu, Jun 9, 2011 at 5:36 PM, Claus Ibsen wrote: > When moving to the DLQ there is no caused exception attached and > whatnot. Its the original message *as is*. > > > On Thu, Jun 9, 2011 at 5:15 PM, gsilve

Re: Splitter StopOnException doesn't forward the exception on the Exchange

2011-06-09 Thread gsilverman
So, if I understand you correctly, I shouldn't use the DeadLetterChannel type in the error handler. What types are available and how would I then configure the error handler? -- View this message in context: http://camel.465427.n5.nabble.com/Splitter-StopOnException-doesn-t-forward-the-exception-

Re: Splitter StopOnException doesn't forward the exception on the Exchange

2011-06-09 Thread Claus Ibsen
When moving to the DLQ there is no caused exception attached and whatnot. Its the original message *as is*. On Thu, Jun 9, 2011 at 5:15 PM, gsilverman wrote: > Yes. I'm using camel v2.71. > > Here is my error handler: > >        deadLetterUri="direct:queryFormularyError" useOriginalMessage="tru

Re: Splitter StopOnException doesn't forward the exception on the Exchange

2011-06-09 Thread gsilverman
Yes. I'm using camel v2.71. Here is my error handler: and the deadletter route is: The queryFormularyErrorHandler refers to the QueryFormularyErrorHandler processor described earlier, and the createReturnMsg bean just translates the exception message into a

Re: CustomAggregation of CSV not completing, don't want to complete using completionTimeout

2011-06-09 Thread Claus Ibsen
Whats the input source for this? If you use a batch consumer http://camel.apache.org/batch-consumer.html Then there is a specialized completion option for that: completionFromBatchConsumer On Wed, Jun 8, 2011 at 5:39 PM, jhart98169 wrote: > I'm having trouble getting a slightly complex split/un

Re: Splitter StopOnException doesn't forward the exception on the Exchange

2011-06-09 Thread Claus Ibsen
Hi Can you post more details about how you configured the error handler? And what version of Camel are you using? On Wed, Jun 8, 2011 at 5:31 PM, gsilverman wrote: > I have the following route which uses stopOnException to catch exceptions: > > > >             parallelProcessing="true" stopO

Re: Build break in camel-jetty

2011-06-09 Thread James Talbut
On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: > Maybe it relates to the openjdk. > Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've also tried on Windows 7 and that works (breaks in camel-ftp, but that's anothe

Re: Build break in camel-jetty

2011-06-09 Thread Willem Jiang
Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? On 6/8/11 3:21 PM, Jim Talbut wrote: Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_GB, platform encoding: UTF-8 OS name:

Re: Build break in camel-jetty

2011-06-09 Thread bvahdat
Oops, just realized my typo about "the same OS" as you reported it under Linux... -- View this message in context: http://camel.465427.n5.nabble.com/Build-break-in-camel-jetty-tp4468084p4472763.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Build break in camel-jetty

2011-06-09 Thread bvahdat
Hi Jim, running also on Windows-OS as same as you it works well for me on the trunk! $> mvn -q test -Dtest=MultiPartFormTest [echo] Maven version: 2.8-SNAPSHOT [echo] OSGi version: 2.8.0.SNAPSHOT --- T E S T S ---

Re: file component: fileLock en preMove doesn't work

2011-06-09 Thread Claus Ibsen
The FileLock is OS dependent how that works. So if it wont work on Windows it may work on other OS's. On Wed, Jun 8, 2011 at 11:30 PM, anoordover wrote: > When using a file route with a preMove and a fileLock the move failes in > windows: > > 2011-06-08 23:04:05,599 [Camel (camel) thread #0 - fi

Re: Stream is closed exception when calling CXF WS

2011-06-09 Thread Jérôme Lelong
Hello, Thanks a lot, that's work for me now. Jérôme 2011/6/9 Willem Jiang > Hi, > > It's a bug of CXF, you can work around it by changing the log level setting > on the HTTPConduit. > You can find more information here[1] > > [1]https://issues.apache.org/**jira/browse/CXF-3466

Re: Using properties or headers to persist meta information on the exchange?

2011-06-09 Thread Marco Zapletal
Claus, thanks for your response. yes, it is quite obvious that in such cases, the headers will be lost (which would be the case for properties, too). I was just a little bit confused about the distinction between headers and properties, after reading the thread I cited [1]. Anyway, I will stic

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 05:40, Claus Ibsen wrote: Hi Yeah. We have not seen this error on the other OS. Do you get this error if you run the test multiple times? On Wed, Jun 8, 2011 at 9:21 AM, Jim Talbut wrote: Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm/