Re: Trying to simplify my component by using a reifier

2023-12-03 Thread Steve973
Ok, I spoke too soon. I saw that the RecipientListProcessor has no trouble with the Expression, and that means that I did not need the pipeline. So, instead wrapping the expression evaluator and recipient list in a pipeline, I skip that, and just return the Recipient List and it works as expected

Re: Trying to simplify my component by using a reifier

2023-12-03 Thread Steve973
Hi, Claus. You make a good point. I am setting up a helper class that contains the code to create the RecipientList. I copied over everything from the RecipientListReifier class, and converted the places that use the Definition instances to just use my Configuration. I also removed the line tha

Re: Trying to simplify my component by using a reifier

2023-12-03 Thread Claus Ibsen
On Wed, Nov 29, 2023 at 9:06 PM Steve973 wrote: > Hi, Claus. Thanks for the recommendation. Originally, I was going to use > the RecipientList class and create an instance. I thought that I would see > how core was creating the processor, which led me to my interest in the > reifier class. Wh

Re: Trying to simplify my component by using a reifier

2023-11-29 Thread Steve973
Hi, Claus. Thanks for the recommendation. Originally, I was going to use the RecipientList class and create an instance. I thought that I would see how core was creating the processor, which led me to my interest in the reifier class. When I looked at it, I saw the value in how it set up the ex

Re: Trying to simplify my component by using a reifier

2023-11-28 Thread Claus Ibsen
Hi If you need to create the RecipientListProcessor then you dont necessary have to use reifier to do it. We have a few EIPs that are created via annotations https://github.com/apache/camel/blob/5235319d94fbb82f479ca3085b0780c0f144111b/core/camel-api/src/main/java/org/apache/camel/spi/AnnotationB

Trying to simplify my component by using a reifier

2023-11-27 Thread Steve973
Hello. I am attempting to simplify my Dynamic Router EIP component by using the existing RecipientList implementation from camel-core. I was looking at the RecipientListReifier, even though I will not be adding anything to the Camel DSL. It looks like it would be perfect for setting up the Recip