Re: Consuming messages based on a predicate

2011-01-07 Thread Martin Gilday
Fri, Jan 7, 2011 at 12:20 PM, Martin Gilday wrote: > Hi, > > I am building a Camel route which consumes from a JMS queue, does JSON > to XML conversion and then calls a web service to send requests to a > third party.  This third party only wants to receive the messages during > the

Consuming messages based on a predicate

2011-01-07 Thread Martin Gilday
Hi, I am building a Camel route which consumes from a JMS queue, does JSON to XML conversion and then calls a web service to send requests to a third party. This third party only wants to receive the messages during their opening hours. This made me immediately think to use the Quartz component

Load Balancer Clarification

2010-04-20 Thread Martin Gilday
Hi, I'm just reading through the Load Balancer docs [1] and would like some clarification on how it works. I have a JMS queue where each entry is the name of a file to print. This is consumed a printing component (our own not the Camel one) which uses Ice PDF to render a PDF document and send to

Stopped Routes

2010-03-30 Thread Martin Gilday
When looking around I've found examples [1] showing how to stop and start routes in a CamelContext. However I've been unable to find how to configure a route to be stopped at startup. Is it possible to do this? [1] http://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/c

Re: Apache Camel Usage with .Net

2010-01-03 Thread Martin Gilday
I recently had a project that required integration with MSMQ. In the end we found it easier to use C# to write a bridge that relayed all the messages from MSMQ on to ActiveMQ which we then used Camel with. You can publish to ActiveMQ from C# really easily with Apache NMS and Spring.NET. - O

Re: Filename based on XPath result

2009-12-15 Thread Martin Gilday
Thanks Claus, that works well. - Original message - From: "Claus Ibsen" To: users@camel.apache.org Date: Mon, 14 Dec 2009 16:11:25 +0100 Subject: Re: Filename based on XPath result On Mon, Dec 14, 2009 at 2:03 PM, Martin Gilday wrote: > Hi, > > Yes that is how we t

Re: Filename based on XPath result

2009-12-14 Thread Martin Gilday
some xpath concat magic you can assemble it in one expression." Martin - Original message - From: "Claus Ibsen" To: users@camel.apache.org Date: Mon, 14 Dec 2009 13:03:16 +0100 Subject: Re: Filename based on XPath result On Mon, Dec 14, 2009 at 11:55 AM, Martin

Filename based on XPath result

2009-12-14 Thread Martin Gilday
Hi, I have a StringMessage which contains and XML body. I would like to use a unique part of the body as the filename in conjunction with the file component. Is it possible to consume from JMS and send to file with the filename the result of an XPath match? Thanks, Martin.

Re: using ProducerTemplate for JMS with Spring

2009-06-03 Thread Martin Gilday
Sorry if this appears twice, my first attempt got rejected as spam :) Claus, Do you have to put the template inside the context? Is this a 2.0 change? I've always placed it outside. As you can't define a context ref it seemed effectively singleton and so didn't matter where you created it. Thi

Re: Camel-Spring and Bean post processors

2009-05-31 Thread Martin Gilday
Created CAMEL-1663. I've written it for 1.6.0 which is where I found this problem, but put the 2.0 code in there as well commented out. https://issues.apache.org/activemq/browse/CAMEL-1663 - Original message - From: "Martin Gilday" To: users@camel.apache.org Date: Sun,

Re: Camel-Spring and Bean post processors

2009-05-31 Thread Martin Gilday
riendly license. Then we can take a stab at it and if/when fixed we have an unit test for it also. But I need help from you / camel community to create the initial sample / unit test. On Fri, May 29, 2009 at 1:20 PM, Martin Gilday wrote: > Hi, > > I am having trouble with ca

Camel-Spring and Bean post processors

2009-05-29 Thread Martin Gilday
Hi, I am having trouble with camel-spring (1.6.0) and a InstantiationAwareBeanPostProcessorAdapter I have written. It processes a custom annotation to set fields on Spring beans directly from .properties files. The processor works correctly until I try to @Autowired into a Java Camel RouteBuilde

Camel Printing

2009-05-15 Thread Martin Gilday
Hi, This last week where I work we have made a Camel component for javax.print. Our use case is that we have a JMS queue where a customer ID is placed. The consumer of this generates a personalised PDF document by merging in their name, address etc. Then the filename is placed on another JMS qu

Camel 2 Milestone testing and feedback

2009-04-21 Thread Martin Gilday
Hey, Just a bit of feedback regarding the Camel 2 milestones. We have created experimental branches of all our corporate projects which make use of Camel 1.x, and upgrading them to use Camel 2M1. These branches have been added to our Bamboo, which we plan to keep up to date with any subsequent m

Re: Quartz route with Spring transactions

2009-04-15 Thread Martin Gilday
Camel 2.0 so you can just do .transacted() and thats it (yes you still need to configure the TX manager but that is 100% standard Spring stuff) On Wed, Apr 15, 2009 at 4:14 PM, Martin Gilday wrote: > Hi, > One of my colleagues is trying to create a transactional route which > starts wit

Quartz route with Spring transactions

2009-04-15 Thread Martin Gilday
Hi, One of my colleagues is trying to create a transactional route which starts with a Quartz endpoint. However the transaction does not appear to start. If he replaces the Quartz endpoint with a Direct then the transaction works. He would like the whole route started by the Quartz endpoint to b

Re: Type converters with Spring

2009-04-01 Thread Martin Gilday
n the Exchange. - Original message - From: "James Strachan" To: users@camel.apache.org Date: Tue, 31 Mar 2009 11:47:26 +0100 Subject: Re: Type converters with Spring 2009/3/31 Martin Gilday : > Thanks, we will give those a try. > > As your suggestions seem to differ

Re: Type converters with Spring

2009-03-31 Thread Martin Gilday
ry as well, and do lookup for Spring beans. On Tue, Mar 31, 2009 at 12:01 PM, James Strachan wrote: > 2009/3/31 Martin Gilday : >> I'd like to have a converter which uses a Spring @service to do lookups. >>  According to the docs "If a converter requires configuration

Type converters with Spring

2009-03-31 Thread Martin Gilday
I'd like to have a converter which uses a Spring @service to do lookups. According to the docs "If a converter requires configuration you can plug in an Injector interface to the DefaultTypeConverter which can construct and inject converter objects via Spring or Guice." I'm unsure what it means b