Re: Attaching a to a

2011-02-21 Thread Claus Ibsen
No you would have to write code. On CamelContext there is a method to load routes from XML file, which you can use to add routes to an existing CamelContext. See this example http://camel.apache.org/loading-routes-from-xml-files.html On Tue, Feb 22, 2011 at 7:29 AM, Jim Talbut wrote: > Hi, > >

Attaching a to a

2011-02-21 Thread Jim Talbut
Hi, Is there any way to attach a route (from one spring XML file) to a camelContext (defined in another at an earlier time)? I'm thinking, for example, of an OSGi situation where I want to add a route to a predefined context without writing code. Is there any fundamental reason why there couldn

Re: Support for StreamMessage

2011-02-21 Thread Claus Ibsen
Hi See the messageConverter option http://camel.apache.org/jms On Mon, Feb 21, 2011 at 9:17 PM, Patrick Vanbrabant wrote: > > Hi all, > > I'm new to Camel and would like to use it to perform content based routing. > The message are put on an ActiveMQ queue as StreamMessages by a third party >

Support for StreamMessage

2011-02-21 Thread Patrick Vanbrabant
Hi all, I'm new to Camel and would like to use it to perform content based routing. The message are put on an ActiveMQ queue as StreamMessages by a third party application (no change possible here). Doing some research on the web, I found the mapping to/from StreamMessage is not supported by Cam

Re: ActiveMQ connection with failover and prefetch

2011-02-21 Thread Marco Crivellaro
I've tried to use the URI format you suggested but the result is the same using the URI I posted -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-connection-with-failover-and-prefetch-tp3387737p3394630.html Sent from the Camel - Users mailing list archive at Nabble.com

Re: Producer Multiple Messages

2011-02-21 Thread Hadrian Zbarcea
You probably want to use the DSL, i.e. use the splitter in the route instead of making your producer do something not intended at that level. Hadrian On Feb 21, 2011, at 12:32 PM, Roshan A. Punnoose wrote: > Could I use the splitter in my producer directly? Or the async api directly? > Or wou

Re: Returning a custom response (custom fault message) when a transaction fails

2011-02-21 Thread Marco Zapletal
hmm... it seemed that the handled(true) statement caused my problem, which caused the exception not to be rethrown. when I set handled to false, it seems to work fine... On 21.02.2011 18:09, Marco Zapletal wrote: Dear folks, My questions relates to a transacted route as it is described in the

RE: Producer Multiple Messages

2011-02-21 Thread Roshan A. Punnoose
Could I use the splitter in my producer directly? Or the async api directly? Or would it only work if the splitter is defined in the route after the to("mycomp..") statement? Roshan From: Hadrian Zbarcea [hzbar...@gmail.com] Sent: Monday, February 21, 201

Re: Producer Multiple Messages

2011-02-21 Thread Hadrian Zbarcea
You are probably looking for a splitter or a loop. Most likely splitter/aggregator. Hadrian On Feb 21, 2011, at 12:17 PM, Roshan A. Punnoose wrote: > Sorry got the terminology incorrect, I meant Producer instead of Consumer. > > I want to be able to do something like the following: > > from.

Re: Consumer Multiple Messages

2011-02-21 Thread Hadrian Zbarcea
Hi Roshan, Do you mean N internal Camel exchanges, or N replies to the 1 caller request? The former is relatively easy to do. The second is a bit tricky with of the request/reply model, but if your protocol is async it could be done. See for instance the mail or jms components and the role of r

Camel 2.4.0 XA JMS Rollback

2011-02-21 Thread Greenbean
I am using Camel 2.4.0, ActiveMQ 5.3, Java 6u23, Spring 3.0.3. I am having a problem with XA rollbacks not causing redelivery or message transfer to the dead letter queue in ActiveMQ when using Camel. We have similar processing in the same container that is not using Camel, and rollback and tran

RE: Producer Multiple Messages

2011-02-21 Thread Roshan A. Punnoose
Sorry got the terminology incorrect, I meant Producer instead of Consumer. I want to be able to do something like the following: from... setBody(query).to("mycomponent..."). get N messages for each row returned. Roshan From: Roshan A. Punnoose [rpunno

Consumer Multiple Messages

2011-02-21 Thread Roshan A. Punnoose
This may have already been asked, but I can't seem to find the answer on Google... I have created a custom component, with a custom consumer. My consumer takes a query, and outputs results. I want there to be N exchanges for 1 query, but I can't seem to find a way to send multiple exchanges aft

Returning a custom response (custom fault message) when a transaction fails

2011-02-21 Thread Marco Zapletal
Dear folks, My questions relates to a transacted route as it is described in the Camel in Action Book in Section 9.4.3 (Returning a custom response) - my goal is, however, to return a web service fault (instead of regular response message) _and_ rollback the route. The situation is as follow

Re: ActiveMQ connection with failover and prefetch

2011-02-21 Thread Marco Crivellaro
Thank you I'll give it a try and let you know... without prefetch option it works so I thought it was correct to use that URI format -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-connection-with-failover-and-prefetch-tp3387737p3394410.html Sent from the Camel - Use

Re: From the validity of using Camel+Bindy as a super lightweight ETL tool to evolving it to support a data management system?

2011-02-21 Thread Hadrian Zbarcea
Hi Grant, Quite a few questions here. Thanks for taking the time and evaluating Apache Camel. Yes, Camel is ideal for such scenarios, because: 1. It's specifically designed for that, systems integration. 2. It's simple to use and requires minimal coding 3. It supports out of the box a large num

Re: [Hookpoint] Extensible routes ?

2011-02-21 Thread Olivier.Roger
Hello JacobS, The solution we put in place is based on the previous comments. The idea was to split the route into a least two OSGI bundles. The first bundle gather all endpoint definition to external systems, like ftp, web service, jms, ... anything really. All the incomming messages received

Re: QuartzComponent do not delete quartz worker threads when shutdown Camel.

2011-02-21 Thread Claus Ibsen
Hi On Mon, Feb 21, 2011 at 7:53 AM, aliablue <962...@gmail.com> wrote: > > Hi, > > QuartzComponent re-create quartz worker threads during shutdown Camel. > Here is an stack trace for a thread running in tomcat during shutdown Camel: > > Camel ver.2.6.0 > > Daemon Thread [http-8989-1] (Suspended (b