Exception Handling with Subroutes incl. Splits

2012-01-27 Thread s_albrecht
Hi All, I am using camel 2.8.1 and want to do the following: - Route A calls Route B (via direct endpoint) - Route B does some error handling like - completely handling exception, converting exception to another type and throw the converted, let exception through - Route A adds some more error han

camel test kit

2012-01-27 Thread Filippo Balicchia
Hi, When use camelTestSuport is possible to avoid the use of Thread.sleep for gives Camel to React and and route ? Suppose that test is running on CI where cpu it is particularly busy, with thread.sleep there is a risk that the test should not fail even if Cheers --Filippo

Re: Exception Handling with Subroutes incl. Splits

2012-01-27 Thread Claus Ibsen
On Fri, Jan 27, 2012 at 9:01 AM, s_albrecht wrote: > Hi All, > > I am using camel 2.8.1 and want to do the following: > - Route A calls Route B (via direct endpoint) > - Route B does some error handling like - completely handling exception, > converting exception to another type and throw the conv

Re: Exception Handling with Subroutes incl. Splits

2012-01-27 Thread s_albrecht
ok, thanks and sorry for this, I missed that option. Is there an easy solution for the first part of my question as well ? -- View this message in context: http://camel.465427.n5.nabble.com/Exception-Handling-with-Subroutes-incl-Splits-tp5434732p5434745.html Sent from the Camel - Users mailing li

Re: Exception Handling with Subroutes incl. Splits

2012-01-27 Thread Claus Ibsen
On Fri, Jan 27, 2012 at 9:11 AM, s_albrecht wrote: > ok, thanks and sorry for this, I missed that option. Is there an easy > solution for the first part of my question as well ? > You can use route scoped onException to handle exceptions differently, between the routes. > -- > View this message

Re: camel test kit

2012-01-27 Thread Claus Ibsen
Hi Can you be more specific how this is related to C This is not really Camel specific, but about timing issues from unit tests running on CI servers. On Fri, Jan 27, 2012 at 9:03 AM, Filippo Balicchia wrote: > Hi, > > When use camelTestSuport is possible to avoid the use of Thread.sleep > for

Re: camel test kit

2012-01-27 Thread Tarjei Huse
On 01/27/2012 09:25 AM, Claus Ibsen wrote: > Hi > > Can you be more specific how this is related to C > This is not really Camel specific, but about timing issues from unit > tests running on CI servers. > > > On Fri, Jan 27, 2012 at 9:03 AM, Filippo Balicchia > wrote: >> Hi, >> >> When use camel

Re: camel test kit

2012-01-27 Thread Filippo Balicchia
Ok Thanks, maybe I explained bad for example this test sometimes fails and sometimes not when I make a thread sleep 3000 When i put 4000 on my console never failed. What I wanted to say and if you can using them, a different switching technique Thanks public class DispatchToxdmRouteTest extend

Re: Exception Handling with Subroutes incl. Splits

2012-01-27 Thread s_albrecht
> You can use route scoped onException to handle exceptions differently, > between the routes. No, that does not work. I forgot to mention that the 2 routes are separated into 2 route builders. It seems to me that only the error handling of the sub route is active and all the onException configur

Adding a RouteBuilder to a spring configured CamelContext.

2012-01-27 Thread Tom Howe
Hi, Is it possible to use SingleRouteCamelConfiguration to add a route to an camelContext that is already created by Spring? When I try, I get 2 camelContexts. I tried to provide the spring camelContext to SingleRouteCamelConfiguration like this: @Autowired CamelContext camelContext;

Re: Delays and Transactions

2012-01-27 Thread Claus Ibsen
Hi Ad 1) Yes Ad 2) Thanks for reporting. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-4947 On Fri, Jan 27, 2012 at 12:11 PM, Tom Howe wrote: > Hi, > 2 Questions.. > > 1) If I use asyncDelayed(), do I lose any transactionallity on the > route (due to crossing threads)? > >

Apache Camel applicability

2012-01-27 Thread Andrey Stelmashenko
Hello, Community! I work on a project design and consider using of apache camel. I looked through the documentation, I liked it! I see that I may need components and message translators. But I doubt in a way I`m going to use it. Here is some brief overview of a project goal: The project is a medi

JMS and transaction

2012-01-27 Thread Hervé BARRAULT
Hi, I have two question about a route, JMS and transactions. The use is : one request response Web service put message on n queues (using transaction ensure the message really put in all queues or no one). Does this route make sense (only "pseudo" route not all the stuff to manage transaction i

Re: Splitting on XML Documents

2012-01-27 Thread Łukasz Dywicki
Hey Chris, Let me try to explain what happens under the hood. XSLT transformation requires an instance of javax.xml.transform.Source [1]. The result from the splitter is a org.w3c.dom.Node (or something similar). By default your node will be wrapped in DOMSource [2]. The explicit type conversio

Re: Apache Camel applicability

2012-01-27 Thread Claus Ibsen
On Fri, Jan 27, 2012 at 2:13 PM, Andrey Stelmashenko wrote: > Hello, Community! > > I work on a project design and consider using of apache camel. I > looked through the documentation, I liked it! I see that I may need > components and message translators. But I doubt in a way I`m going to > use i

Re: Apache Camel applicability

2012-01-27 Thread Hadrian Zbarcea
The is a common camel use case that we call web-enabling (or web-servicizing) legacy applications. For various reasons (usually related to protocols or security) we need to put a proxy in front of a legacy app. Things you need to pay attention to: * the protocol and interface exposed by M. Usu

Re: Delays and Transactions

2012-01-27 Thread Tom Howe
ok thanks. On Fri, Jan 27, 2012 at 1:02 PM, Claus Ibsen wrote: > Hi > > Ad 1) > Yes > > Ad 2) > Thanks for reporting. I have logged a ticket > https://issues.apache.org/jira/browse/CAMEL-4947 > > > On Fri, Jan 27, 2012 at 12:11 PM, Tom Howe wrote: >> Hi, >> 2 Questions.. >> >> 1) If I use asyncD

Message-dependent sync with MINA?

2012-01-27 Thread andlu702
Hi I have a situation where I am to replace a legacy server which has multiple clients and the communication is with a custom raw-byte format over TCP. I was thinking that camel MINA must be perfect for the task and have written a codec to encode and decode the messages. However, the communication

Re: BindException with Embedded Jetty for camel web app

2012-01-27 Thread lavanya
Thanks Willem. I looked at my configuration files. I am referring both ActiveMQComponent and JmsComponent in my configuration, I think it is a redundant, and got rid off JmsComponet, now it works fine. But still I am wondering why Tomcat doesn't throw any exception for the same. -- View this mess

Re: Problems implementing a delay in a camel route

2012-01-27 Thread Christian Müller
We track this issue with https://issues.apache.org/jira/browse/CAMEL-4947 Thanks for reporting, Christian On Thu, Jan 26, 2012 at 1:24 PM, Tom Howe wrote: > Hi, can anyone help with this.. specifically computeDelay() method never > appears to be called.. > > > > >

Re: Camel route JMS -> SOAP -> JMS

2012-01-27 Thread marnold
Thanks Babak. I had assumed Camel would auto-magically create a JMS TextMessage with the message text from the body of the Camel message, and JMS StringProperties from the Camel message's headers. I will look into your suggestions. Thanks again. -- View this message in context: http://camel.46

Re: Bindy - Avoiding bindy to discard a chunk of data when one line has incorrect format

2012-01-27 Thread Claus Ibsen
On Fri, Jan 27, 2012 at 3:19 PM, Aida wrote: > Hi, > > I'm working with bindy to process a file. I use a splitter (something > similar to what it is said here by Claus: > http://stackoverflow.com/questions/8122748/best-strategy-for-processing-large-csv-files-in-apache-camel) > so I can send chunks

Re: Splitting on XML Documents

2012-01-27 Thread Chris Geer
Thank you for the explanation. Chris 2012/1/27 Łukasz Dywicki > Hey Chris, > Let me try to explain what happens under the hood. > > XSLT transformation requires an instance of javax.xml.transform.Source > [1]. The result from the splitter is a org.w3c.dom.Node (or something > similar). By defau

Re: Component Design - SMSLib

2012-01-27 Thread Hadrian Zbarcea
Alex, it's not really clear what the license is for mock serial, looks like you didn't think of that yet, maybe? In a previous mail deckerego gave you some useful advice. It's actually fairly easy, I'd recommend to just start working on it and look at the examples. Good starting points are [1]

Re: JMS and transaction

2012-01-27 Thread Hervé BARRAULT
Hi, I found in archive that parallel processing is not compatible with transaction. Is it still relevant or is there a workaround ? Regards Hervé On 1/27/12, Hervé BARRAULT wrote: > Hi, > > I have two question about a route, JMS and transactions. > > The use is : one request response Web serv

Re: camelContext.suspend() and JmsComponent

2012-01-27 Thread Jason Dillon
When would a component ever get suspended? I'm trying to get a quick Connection.stop() called which I guessed (wrongly) that suspend() would eventually do. Though after looking at thing closer, I'm using the ActiveMQ PooledConnectionFactory and it doesn't even support a way to call stop() on i

How to setup JProbe

2012-01-27 Thread cwhistler
Does anyone have any tips for setting up JProbe on a camel process? We are obviously doing something wrong. We setup Jprobe to start the application with our Spring class, which does work but then we only get overall statistics. We are not able to drill down into the actual processes that camel

CXF-Camel Proxy Bug?

2012-01-27 Thread sram
I am trying to use the camel-cxf-proxy example with CXF2.5.1-CAMEL 2.6.0 with no luck. The only difference between the example and my setup, is I use PAYLOAD mode and run the realwebservice on an external webcontainer. The route receiver complains, it cannot covert CxfPayload to InputStream. Is th

Re: CXF-Camel Proxy Bug?

2012-01-27 Thread sram
Finally after many hours of testing, the issue was resolved. Camel route was not adding SOAP tags to the calls intended to reach external webservice. -- View this message in context: http://camel.465427.n5.nabble.com/CXF-Camel-Proxy-Bug-tp5436846p5437208.html Sent from the Camel - Users mailing