Routing new data from a DB query, updates from JMS

2010-06-15 Thread Gsegel
A quick rundown of our situation...Our system operates in a very dynamic environment where accessing the data to route will have to be done in two 'phases': 1. Perform an initial query to a database(s) and route any new records 2. Listen for updates pushed to a JMS Queue and route I have the b

Help with filter behavior

2010-07-29 Thread GSegel
I am trying to build a route using Java DSL and I'm getting a confusing error in my IDE (IntelliJ). Here's what I'm trying to do: 1. Receive a message from a JMS Queue 2. Enrich the message by querying a database to retrieve additional content (claim check pattern) 3. Filter the messages to exclu

Re: Help with filter behavior

2010-08-02 Thread GSegel
I was using Camel 2.3. I switched to version 2.4 as you recommended and the error highlighting went away. With version 2.4, it now works for '.filter().xpath("/order[not(@test)]")' and also for Claus's suggestion of '.filter(xpath("/order[not(@test)]"))'. Before trying the 2.4 version, I put th

Re: Help with filter behavior

2010-08-02 Thread GSegel
Claus- Thanks for taking the time to respond! I upgraded to 2.4 and my issue is resolved but just to follow-up, I tried your suggestion of using '.filter(xpath("/order[not(@test)]"))' but it still didn't work with 2.3. I'm seeing that using Java to define the routes is limiting but the applicat

Odd route start behavior after context is started

2010-09-10 Thread GSegel
I'm seeing an issue when starting routes (pulling from a multiple-consumer SEDA Queue) after the context has been started. After the 3rd route is started, the 3rd route does not receive most of the data while the other two routes receive all the data. Am I doing the wrong thing by adding routes

Re: Odd route start behavior after context is started

2010-09-10 Thread GSegel
http://camel.465427.n5.nabble.com/file/n2835470/Simple_Route_Test.jpg Sorry for the bad diagram but I just wanted to convey the configuration. The route that takes data from the SEDA Queue on the left and sends to the SEDA Queue on the right isn't necessary but I wanted to simulate one of the r

Re: Odd route start behavior after context is started

2010-09-13 Thread GSegel
If I replace the multiple-consumer SEDA Queue with a JMS Topic, everything works fine...ie: All three routes get the data. Is there a known problem with dynamically adding consumers to a multiple-consumer SEDA Queue? I need to do some more digging, but I turned on the Camel debug logging and saw

Re: How to implement (dynamic) rule engine with camel.

2010-09-13 Thread GSegel
Naira & Kobo wrote: > > This means, if I have endpoints A, B, C, D, E, F > The first use case can be: A -> D -> E -> F > The second use case: A -> B -> C -> F > Adding the second use case should require a restart of the camel > application. > Does Camel need to be restarted to switch between t

Re: How to implement (dynamic) rule engine with camel.

2010-09-13 Thread GSegel
Claus Ibsen-2 wrote: > > Hi > > The dynamic router EIP pattern > http://camel.apache.org/dynamic-router.html > > And you can add/remove routes at runtime using the CamelContext API. > > Nice! This will probably work for the issue I posted about also! -- View this message in context: http

Re: Odd route start behavior after context is started

2010-09-14 Thread GSegel
Thanks! I'll use the JMS Topic as a temporary workaround until this is fixed. If this doesn't make it in the 2.5 release, I'll try using the DynamicRouter pattern. -- View this message in context: http://camel.465427.n5.nabble.com/Odd-route-start-behavior-after-context-is-started-tp2835464p283

Re: Odd route start behavior after context is started

2010-09-22 Thread GSegel
Many thanks! I'll try it out in the next couple of days and reply to confirm. -- View this message in context: http://camel.465427.n5.nabble.com/Odd-route-start-behavior-after-context-is-started-tp2835464p2850015.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Odd route start behavior after context is started

2010-09-27 Thread GSegel
I downloaded the 2.5 Snapshot jar file and ran through a series of unit tests it was previously failing...now everything seems to be working as expected. I can add/remove routes from the CamelContext during runtime which I couldn't do with 2.4. Thanks for the fix! We will be using this snapshot

File component not working with 2.5 snapshot

2010-10-14 Thread GSegel
I posted on the developer forum (under the thread about JIRA 3223) but it appears my post didn't get submitted or something. I think this bug is related to what I'm seeing but it's more severe than what the JIRA ticket describes. Anyway, I'm having issues using the File component. Thinking it w

Re: File component not working with 2.5 snapshot

2010-10-18 Thread GSegel
Interesting...here's what I'm seeing: INFO [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] (main) Found 4 packages with 0 @Converter classes to load INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (main) Loaded 0 type converters in 0.032 seconds Obviously something

Re: File component not working with 2.5 snapshot

2010-10-19 Thread GSegel
I'm running Java 1.6.0_18-b07 on Windows 7 and creating the Camel Context in Spring (using IntelliJ as my IDE). I downloaded the 2.5 snapshot about a week ago and was using that and just (15 minutes ago) downloaded the latest 2.5 snapshot from the link provided. Here's my log: 2010-10-19 10:05:

Custom idempotent repository?

2011-10-21 Thread GSegel
I see the 5 different types of idempotent repositories that are currently provided by Camel but is it possible to create a custom repository? I don't see anything preventing it but then again I'm not seeing anything about creating a custom solution. There are a couple options being discussed for

Inconsistent results with File2 'readLock=changed'

2011-11-28 Thread GSegel
Using Camel 2.5 in JBoss 5.1. When dropping large files (over 200MB) into a directory I expected that the Exchange wouldn't kick off until the file had completed copying. More often than not, an Exchange is created before it finishes copying. We're using the 'readLock=changed' option btw. Is th

Re: Inconsistent results with File2 'readLock=changed'

2011-11-29 Thread GSegel
I upgraded my dev box to version 2.8.3 so I could use the readLockCheckInterval option and set it to 3 seconds. The Exchange still fires off even though the file hasn't completely copied. Details: 1) My custom Idempotent Repository gets queried as soon as I initiate the file copy (OK) 2) 3 seco