Re: Filtering an xml directory

2010-11-15 Thread Claus Ibsen
On Sun, Nov 14, 2010 at 6:45 PM, Tommy Chheng wrote: > Hi Claus, > In Section 13.4.1, the reference to shutting down the application when the > route is done processing is : > Main main = new Main(); > main.setApplicationContextUri("META-INF/spring/camel-context.xml"); > main.enableHangupSupport()

Re: Filtering an xml directory

2010-11-14 Thread Tommy Chheng
Hi Claus, In Section 13.4.1, the reference to shutting down the application when the route is done processing is : Main main = new Main(); main.setApplicationContextUri("META-INF/spring/camel-context.xml"); main.enableHangupSupport(); main.start(); But this requires using spring? Is it possi

Re: Filtering an xml directory

2010-11-14 Thread Claus Ibsen
I have created a ticket https://issues.apache.org/activemq/browse/CAMEL-3339 To make this even easier if you are not using camel-spring JAR. On Sun, Nov 14, 2010 at 9:56 AM, Claus Ibsen wrote: > On Sun, Nov 14, 2010 at 9:54 AM, Tommy Chheng wrote: >> I just got the camel in action book and saw

Re: Filtering an xml directory

2010-11-14 Thread Claus Ibsen
On Sun, Nov 14, 2010 at 9:54 AM, Tommy Chheng wrote: > I just got the camel in action book and saw the example in chap 1. > > I needed a Thread.sleep(1) right after context.start so: > context.start > Thread.sleep(1) > context.stop > > Is there a blocking stop method where the program woul

Re: Filtering an xml directory

2010-11-14 Thread Tommy Chheng
I just got the camel in action book and saw the example in chap 1. I needed a Thread.sleep(1) right after context.start so: context.start Thread.sleep(1) context.stop Is there a blocking stop method where the program would end when the process is done? On 11/14/10 12:42 AM, Claus Ibs

Re: Filtering an xml directory

2010-11-14 Thread Claus Ibsen
Hi Try just first without the filter, to see that it creates the output files. Then add back the filter and you then know the xpath returns false for all the input files. Hence its most likely your xpath expression which is wrong. On Sun, Nov 14, 2010 at 9:02 AM, Tommy Chheng wrote: > I'm tryin

Filtering an xml directory

2010-11-14 Thread Tommy Chheng
I'm trying to use Camel to extract only the "//title" tag in a directory of xml files. This is all on local disk. The code runs sucessfully without an error but there was no directory created. Any ideas whats wrong? import org.apache.camel.builder.RouteBuilder import org.apache.camel.impl.Defau