Re: Change Message Destination using Interceptors

2009-03-18 Thread James Strachan
2009/3/17 DanielR : > > I can't get it working... any examples would be nice please Here's a bunch of examples... http://camel.apache.org/examples.html The spring XQuery example might be a good start... http://camel.apache.org/spring-xquery-example.html you might find its easier to write your p

Re: Change Message Destination using Interceptors

2009-03-17 Thread DanielR
I can't get it working... any examples would be nice please James.Strachan wrote: > > 2009/3/17 DanielR : >> >> I have 2 restrictions: >> >> 1. The routing must be done server side >> 2. The routing depends on the body, not on the header or some property > > Both of those are fine - just incl

Re: Change Message Destination using Interceptors

2009-03-17 Thread James Strachan
2009/3/17 DanielR : > > I have 2 restrictions: > > 1. The routing must be done server side > 2. The routing depends on the body, not on the header or some property Both of those are fine - just include the content based router inside the broker process. ActiveMQ can easily host Camel routes by jus

Re: Change Message Destination using Interceptors

2009-03-17 Thread DanielR
I have 2 restrictions: 1. The routing must be done server side 2. The routing depends on the body, not on the header or some property James.Strachan wrote: > > 2009/3/17 DanielR : >> >> >> I need to forward the messsage to the proper queue depending on the first >> 10 >> characters of the body

Re: Change Message Destination using Interceptors

2009-03-17 Thread James Strachan
2009/3/17 DanielR : > > > I need to forward the messsage to the proper queue depending on the first 10 > characters of the body of the message. Sounds like a content based router... http://camel.apache.org/content-based-router.html its probably better to do that using Camel rather than as an inte

Re: Change Message Destination using Interceptors

2009-03-17 Thread DanielR
I need to forward the messsage to the proper queue depending on the first 10 characters of the body of the message. James.Strachan wrote: > > 2009/3/17 DanielR : >> >> How can I change the destination queue of a message using Interceptors? > > Whats your use case BTW? > > The easiest thing m

Re: Change Message Destination using Interceptors

2009-03-17 Thread James Strachan
2009/3/17 DanielR : > > How can I change the destination queue of a message using Interceptors? Whats your use case BTW? The easiest thing might be to use a CamelDestination which can then use a route client side to perform content based routing etc. -- James --- http://macstrac.blogspot.co