Re: XStream and forcing ISO-8859-1 Encoding

2011-01-24 Thread jonathanq
I am sorry to bring this back from the dead. However I was just trying out the unmarshal().xstream("ISO-8859-1") method introduced because of this thread. Unfortunately it still does not solve the problem (as of Camel 2.5.0) >From non-camel routes, we have been publishing JMS messages and serial

Camel 2.3.0 - File Endpoint with delete=true and moveFailed doesn't move failed files

2010-06-29 Thread jonathanq
I am using Camel 2.3.0 - I have a file endpoint that is configured with delete=true and moveFailed=error. Yet when an error occurs, it does not move it to a failed directory, and instead keeps re-trying the exchange. Here is a route that shows my setup: public void configure() throws Exception

Re: Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-10 Thread jonathanq
Thank you for the replies - that is exactly what I wanted. I hadn't dug enough through the Split() documentation to see the parallel processing part. I added the .executorService() part so I could cap the number of threads. Thank you! Jonathan -- View this message in context: http://old.nabb

Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-08 Thread jonathanq
Hello, I am trying to get my head around how to construct a specific route in camel 2.3. I am creating a process that listens on a "trigger" directory for a new file which starts the process. Once it receives the "go" message. It will then look at a directory and start processing all of the fi

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-10 Thread jonathanq
Hi Jonathan, > > I just added a unit test[1] which is based on your test case, it looks > like current camel 2.3 don't have the issue that you met. > > Can you have a look at my test and verify your case against the latest > Camel 2.3-SNAPSHOT ? > > [1] http://s

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-03 Thread jonathanq
t; RouteBuilder to see if that helps. > > > > > On Fri, Apr 30, 2010 at 8:36 PM, jonathanq wrote: >> >> I am having serious issues with Camel 2.2.0 and Spring 3.0.2.RELEASE. >> >> I am creating my route in spring as a bean an

Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-04-30 Thread jonathanq
I am having serious issues with Camel 2.2.0 and Spring 3.0.2.RELEASE. I am creating my route in spring as a bean and then injecting it into the camelContext using the following: The actual route definition is: public void configure() throws Exception { from(ge

Re: XStream and forcing ISO-8859-1 Encoding

2010-01-27 Thread jonathanq
> [1] https://issues.apache.org/activemq/browse/CAMEL-2407 > > Willem > > jonathanq wrote: >> I should also mention - this is Camel 2.0.0 >> >> >> jonathanq wrote: >>> I am trying to unmarshal an xml message from JMS that was originally >>

Re: XStream and forcing ISO-8859-1 Encoding

2010-01-26 Thread jonathanq
I should also mention - this is Camel 2.0.0 jonathanq wrote: > > I am trying to unmarshal an xml message from JMS that was originally > marshaled using Xstream. > > When I create the message I am doing this: > > XStream xstream = new XStream(new DomDriver("ISO-8859

XStream and forcing ISO-8859-1 Encoding

2010-01-26 Thread jonathanq
I am trying to unmarshal an xml message from JMS that was originally marshaled using Xstream. When I create the message I am doing this: XStream xstream = new XStream(new DomDriver("ISO-8859-1")); template.sendBody(xstream.toXml(myObject)); On the consuming process I have this in my route: fr

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-31 Thread jonathanq
ded a GenericFile object to get the name to read. Not sure why I didn't think of doing that earlier. Jonathan jonathanq wrote: > > Claus, > > I figured out why my custom Route Policy wasn't working for me. > > It seems that there is an issue when I use preMove on the Fi

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-31 Thread jonathanq
ull. This isn't an issue from my code, I can change the type and everything will work. But it seems very strange that it changes types when "preMove" is set on the endpoint. Is that expected behavior? Jonathan Claus Ibsen-2 wrote: > > On Thu, Dec 31, 2009 at 5:39 PM,

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-31 Thread jonathanq
application. But that will help with future applications as we do end up writing a lot of file based camel processes. Thanks for all the help! Jonathan Claus Ibsen-2 wrote: > > On Thu, Dec 31, 2009 at 12:33 AM, jonathanq wrote: >> >> I took a good look at the Route Pol

Re: Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-30 Thread jonathanq
t actually rely on threads(5) to spawn 5 threads..it will just spawn UP TO 5 threads depending on the system load? Jonathan Claus Ibsen-2 wrote: > > Hi > > See also route policy to throttle the file consumer to a pace of 5 > concurrent files > http://camel.apache.org/routepolic

Processing 5 files at a time - Threads? SEDA + Concurrent Consumers?

2009-12-29 Thread jonathanq
I am trying to write a process that will use a file endpoint (camel 2.1.0) to read from a directory. I need the process to read a file from the directory and then do some processing on the contents (namely hitting a REST service for each record in the file). We have been asked to limit the numbe

Re: JMS Transactions and RequestReply - transactedInOut=true not working?

2009-11-04 Thread jonathanq
re > transactional. Of course, you have to do all the additional Spring > configuration to make the 'queue' component transactional as well. > > Regards, > Fintan > > > > Claus Ibsen-2 wrote: >> >> Hi >> >> Try using a 2nd JMS c

JMS Transactions and RequestReply - transactedInOut=true not working?

2009-10-30 Thread jonathanq
I am having an issue with JMS queues and transactions. I have the following route: from("queue:incomingqueue") .process(getSomeTranslationProcessor()) .process(getMyPersistanceProcessor()) .process(getSomeOtherTransformerProcessor()) .to("queue:outgoingqueue");

Re: Best way to throw away an exchange in a route in an otherwise() case

2009-10-19 Thread jonathanq
Claus Ibsen-2 wrote: > > > Yeah stop() is the right way to do so. Its also easy to understand > what it does :) > > The message filter is another way (a more classic EIP solution) > http://camel.apache.org/message-filter.html > > I had wondered about the filter - but I didn't know what hap

Re: Best way to throw away an exchange in a route in an otherwise() case

2009-10-16 Thread jonathanq
I think I found the solution in the documentation (that's what I get for finally posting a question - never fails I will find the answer 10 minutes later). This is waht I have now: from("direct:incoming") .choice() .when(header("status").isEqualTo("1"))

Best way to throw away an exchange in a route in an otherwise() case

2009-10-16 Thread jonathanq
I apologize if this is a simple question - but I just need to be sure! I am developing this route that handles multiple message types and uses a "when()" predicate to send the message to the appropriate processor based on a header value. In the "Otherwise" case I want to send it to an unknown fo