Re: Camel - error handling

2012-06-27 Thread Claus Ibsen
On Wed, Jun 27, 2012 at 8:17 PM, dgallagher wrote: > Thanks Guys > > If I use the global exception handling (e.g. onException) with Java DSL, do > i need to define a separate route that contains the onException code so that > every route in the context will pick it up? > Yes with the Java DSL and

Re: Threads EIP hangs Unit Tests (JUnit4)

2012-06-27 Thread E.Gherardini
Created jira issue: https://issues.apache.org/jira/browse/CAMEL-5406 -- View this message in context: http://camel.465427.n5.nabble.com/Threads-EIP-hangs-Unit-Tests-JUnit4-tp5715031p5715181.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Threads EIP hangs Unit Tests (JUnit4)

2012-06-27 Thread E.Gherardini
This issue reproduces also on trunk. I am opening a jira issue. -- View this message in context: http://camel.465427.n5.nabble.com/Threads-EIP-hangs-Unit-Tests-JUnit4-tp5715031p5715180.html Sent from the Camel - Users mailing list archive at Nabble.com.

Redhat acquires Fusesource...

2012-06-27 Thread Tracy Snell
http://fusesource.com/redhat/?elq=56aa75f4214c4cd1bf363dfb6fb2c940&elqCampaignId=348

Re: testing: intercept route and process() *after* its completion?

2012-06-27 Thread twelve17
Claus Ibsen-2 wrote > > I read this as you want to do some kind of AOP around the sending a > message > to a given endpoint? > We could possible make that a bit easier from testing point of view. > > What you can do with the advice with, and code you posted above is to > - enable the skip sendin

Re: Threads EIP hangs Unit Tests (JUnit4)

2012-06-27 Thread E.Gherardini
I will and let you know. -- View this message in context: http://camel.465427.n5.nabble.com/Threads-EIP-hangs-Unit-Tests-JUnit4-tp5715031p5715176.html Sent from the Camel - Users mailing list archive at Nabble.com.

Spring DSL XPATH namespace query syntax with header.in key

2012-06-27 Thread Kuido
Hello In Camel route I want set header from following XML body http://schemas.xmlsoap.org/soap/envelope/";> http://e-arvetekeskus.eu/erp";> NO I want catch string "NO" from message body In manual ..No namespace given "from message.in.header if there is a header with the given key" so I

Can't route wsdl request into file

2012-06-27 Thread wolfram
Hi. I've the following route configuration it's purpose is (obviously) to save all the incoming messages into target/reports/server/jetty/contractlast/input and outgoing into target/reports/server/jetty/contractlast/output It's working correctly for all the soap requests but when I'm trying to

unable to control ftp delay

2012-06-27 Thread David Capwell
I am trying to use sftp (camel 2.9.2) and notice that every download is spread out to one every 10 seconds (files are around 10kb). Based off the examples in http://camel.apache.org/ftp2.html it looks like there are delay options (they are not listened under options, but used in example) but when

Re: activiti and camel

2012-06-27 Thread chris snow
Thanks Claus - that was just what I was looking for. On Tue, Jun 26, 2012 at 1:15 PM, Claus Ibsen wrote: > Hi > > Kai Wahner did a presentation recently at CamelOne where he covered > Camel and Activiti. > > The video is here > > http://fusesource.com/apache-camel-conference-2012/camelone_speake

Re: How to achieve both xpath and aggregator

2012-06-27 Thread Deepthi
Hi Claus, I have changed it as suggested by you: /orders/order/@id It says invalid correlation key for all the input files. I can set ignoreInvalidCorrelationKeys to true but it just skips all the files.

Re: Camel - error handling

2012-06-27 Thread Christian Müller
No, you can also do the following: onException(OrderFailedException.class) .handled(true) .bean(ErrorHandlerBean.class, "orderFailed") ... .to("mock:error"); Best, Christian On Wed, Jun 27, 2012 at 8:17 PM, dgallagher wrote: > Thanks Guys > > If I use the global exception handling (e.g.

Camel Rest WebService with cxfrs is only accessible through localhost

2012-06-27 Thread javakurious
I created and deployed a camel cxfrs webservice on Glassfish 3.1. Here is a snippet from camel-config.xml The application deploys fine in GF 3.1. But when I look at the list of deployed services, I see following: Available RESTful services: Endpoint address: http:

Re: JAXB marshal generates byte[] array instead of String

2012-06-27 Thread Henrique Viecili
Please disregard the comment about conversion issue, a simple refresh on camel-jaxb in servicemix solved the problem. BUT, the result of marshal is still a byte[] array while I believe it should be java.lang.String. att. *Henrique Viecili* On Wed, Jun 27, 2012 at 1:37 PM, Henrique Viecili wrote

Re: Camel - error handling

2012-06-27 Thread dgallagher
Thanks Guys If I use the global exception handling (e.g. onException) with Java DSL, do i need to define a separate route that contains the onException code so that every route in the context will pick it up? Thanks Damien -- View this message in context: http://camel.465427.n5.nabble.com/Camel

Re: CXFRS URL Matrix Parameters seemingly stripped away

2012-06-27 Thread Sergey Beryozkin
Hi On 15/06/12 09:33, desysemia wrote: Both, Thanks for your input. With regards to checking that my camel-cxfrs consumer is correct. All other components of the URL are matched and passed through correctly, e.g. PathSegments and QueryParameters. What could be configured incorrectly an still

JAXB marshal generates byte[] array instead of String

2012-06-27 Thread Henrique Viecili
Dear Camel Breeders, would you know any reason why after marshaling an object with jaxb data format the result BodyType is a byte[] array instead of java.lang.String? With byte[] I see conversion problems as the log below shows: 12:45:42,474 | WARN | onsumer-thread-5 | JbiBinding | ?

File language do not work in producer templates defaultEndpoint declaration

2012-06-27 Thread zzkozak
Hi, I'm using the following configuration: http://camel.apache.org/schema/spring";>

Re: Throttling RoutePolicy based on JMS queue size

2012-06-27 Thread christian.ohr
What is your objective of throttling? If you place a JMS queue between Parts A and B, the routes will run using at least 2 different threads. If Part A is faster then the queue will fill up and act as a buffer that decouples the varying speed of execution. I often had this scenario (fast producer

Problem when "redeploying" routes that uses CronScheduledRoutePolicy

2012-06-27 Thread Pontus Ullgren
Hello, We have a application where we dynamically changes route configuration by "redeploying" them. This is done using the following steps. 1. Stop the route 2. Remove the route (and it's endpoints) from the context. 3. (Re)add the route to the context using the same name. For routes that uses

Re: Camel split aggregate over JMS - how determine if any exception occured

2012-06-27 Thread Claus Ibsen
On Wed, Jun 27, 2012 at 12:06 PM, panzerhans wrote: > Is it possible to discover if aJMS message processing threw an exception when > you aggregate after a split (that splits to JMS)? > > I have tried using an aggregator that runs on completionSize (that I set > prior to splitting). All messages s

Re: Changing from file-consumer to ftp-consumer

2012-06-27 Thread Claus Ibsen
On Wed, Jun 27, 2012 at 3:02 PM, stefzar wrote: > The consumer.bridgeErrorHandler option would be great, but I don't exactly > get how to use it. My route looks like this now and the Exception still is > not caught by the .onException clause. Should this code work if the folder > "Notification1" d

Re: Changing from file-consumer to ftp-consumer

2012-06-27 Thread stefzar
The consumer.bridgeErrorHandler option would be great, but I don't exactly get how to use it. My route looks like this now and the Exception still is not caught by the .onException clause. Should this code work if the folder "Notification1" does NOT exist? context.addRoutes(new RouteBuilder() {

Re: Changing from file-consumer to ftp-consumer

2012-06-27 Thread Claus Ibsen
Hi See the pollStrategy option at http://camel.apache.org/polling-consumer.html And from Camel 2.10 onwards you can bridge this consumer error with the Camel error handler in the route using the new consumer.bridgeErrorHandler option http://camel.apache.org/file2 On Wed, Jun 27, 2012 at 2:14 PM

Re: Changing from file-consumer to ftp-consumer

2012-06-27 Thread stefzar
I have tried it with exception handling now. My route looks like this: context.addRoutes(new RouteBuilder() { public void configure() { onException(org.apache.camel.component.file.GenericFileOperationFailedException.class).log("Exception caught"); from("

Re: camel-exec: System Path is empty

2012-06-27 Thread Hilde
Hi Magnus! Thanks for this information, though it is not satisfying me. I supposed a command via exec: that would be executed both on windows and linux. However I got it that echo, perl, dir, etc. need an environment again to be executed and that is e.g. cmd.exe on windows or /bin/bash on linux. M

Re: camel-exec: System Path is empty

2012-06-27 Thread Magnus Palmér
Hello, On Windows I do this (simplified but works): from("direct:exec").to("exec:cmd?args=/C echo echoString" ).to("mock:exec"); That is the exec is my command interpreter, and echo is an argument to the interpreter. (On Windows I need the /C otherwise I just get the data from starting the cmd.ex

Re: Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2012-06-27 Thread Claus Ibsen
On Wed, Jun 27, 2012 at 12:06 PM, get1974 wrote: > Thanks for your quick response. If I understand you correctly it was already > fixed in newer version? If so I think we simple need to upgrade, which is a > good idea anyway. Can you confirm whether this was fixed in the current > production relea

Re: Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2012-06-27 Thread get1974
Thanks for your quick response. If I understand you correctly it was already fixed in newer version? If so I think we simple need to upgrade, which is a good idea anyway. Can you confirm whether this was fixed in the current production release? -- View this message in context: http://camel.465427

Camel split aggregate over JMS - how determine if any exception occured

2012-06-27 Thread panzerhans
Is it possible to discover if aJMS message processing threw an exception when you aggregate after a split (that splits to JMS)? I have tried using an aggregator that runs on completionSize (that I set prior to splitting). All messages sent to the JMSqueue show up, but no indication of exceptions t

Re: XPath Filter not working

2012-06-27 Thread Bob Jolliffe
On 27 June 2012 10:46, Christian Müller wrote: > Shouldn't your use: > > >  /Feeds/Feed >   > A bit verbose, but if you cannot easily work around the namespace mapping you can also try /*[local-name()='Feeds']/*[local-name()='Feed'] Or in the likely case that 'Feed' is the only child of 'Feeds

Re: Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2012-06-27 Thread Claus Ibsen
On Wed, Jun 27, 2012 at 11:57 AM, get1974 wrote: > Hello Claus, > > I also have the case that we seem to loose the headers when forwarding to a > retry queue using the errorhandler and useOriginalMessage. Zince we do not > use the latest version I was wondering whether this was already fixed in de

Re: Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2012-06-27 Thread get1974
Hello Claus, I also have the case that we seem to loose the headers when forwarding to a retry queue using the errorhandler and useOriginalMessage. Zince we do not use the latest version I was wondering whether this was already fixed in de current version (we are on 2.4) or will this be fixed in 3

Re: XPath Filter not working

2012-06-27 Thread Christian Müller
Shouldn't your use: /Feeds/Feed if your input is: Test1 Test2 as you explained? And as documented in [1], xpath will load the entire document into memory: -> not suitable for verry big payloads -> streaming="true" doesn't work And what Claus blogged in his blog (using tokenizeXML

camel-exec: System Path is empty

2012-06-27 Thread Hilde
Hello everybody! In a highly integration based project we would like to use the camel exec:// component. My first tests however let me ask why some executables that must be in the system path by default are not found with exec://. Please see the following example: public class TestCamelExecSpike

Re: Footprint of SEDA queues

2012-06-27 Thread Henryk Konsek
Hi Edwin, > I have 200 of these routes: > Would folks have concerns with this number of SEDA queues? Just wanted to say that having 1000 similar SEDA queues in your router (i.e. on the same VM) is a "routing smell" [1] for me. :) From my experience - this looks bit too complex. When I end up with

Re: XPath Filter not working

2012-06-27 Thread Claus Ibsen
Hi If you use xpath as the expression for splitting XML. Then spent time to google and learn a bit more how to do that. The biggest problem is often that with xpath you must make sure the namespace mapping is correct. And yes it can be a bit of problem to get it working. I suggest if there is som