Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread ski n
When you already have a JMS broker then you can sure test it out. When not you need to sure set up (best fault tolerant), this complicate things. >From my experience, one can use Camel to move the data/commands in parallel. Use the integration patterns to route, transform the data (Camel is very f

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
That seems like a good alternative syntax. However the result is the same (even when setting the argument hardcoded): No bean could be found in the registry for: MyProcessor-1 The only difference by setting it this way, is that the error shows during loading, instead of during running the route.

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread Mansour Al Akeel
Raymond, I am not sure how to simplify this. I have multiple clients, sending commands. Commands that act on the same object, may conflict. I need to orchestrate the execution of these commands to: - avoid two commands to execute for the same object-id, - ensure ordering are preserved, as command

Re: Processor with constructor in a routetemplate

2022-09-08 Thread Claus Ibsen
Btw there is some details on #class syntax here https://camel.apache.org/components/3.18.x/others/main.html#_creating_a_custom_bean_with_constructor_parameters On Thu, Sep 8, 2022 at 2:52 PM Claus Ibsen wrote: > > > On Thu, Sep 8, 2022 at 2:39 PM ski n wrote: > >> Yes, that was, based on the do

Re: Processor with constructor in a routetemplate

2022-09-08 Thread Claus Ibsen
On Thu, Sep 8, 2022 at 2:39 PM ski n wrote: > Yes, that was, based on the documentation, the first thing I tried, but I > got: > > org.apache.camel.ResolveEndpointFailedException: Failed to resolve > endpoint: bean://MyProcessor-1?method=process) due to: No bean could be > found in the registry f

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
Yes, that was, based on the documentation, the first thing I tried, but I got: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: bean://MyProcessor-1?method=process) due to: No bean could be found in the registry for: MyProcessor-1 That's why I started to register it ma

Re: netty http component - SNI missing in SSL handshake

2022-09-08 Thread Claus Ibsen
Hi This is community support and volunteer based. You are using an old EOL Camel version, so chances for help are lower. There is commercial support for people that need this kind of support level https://camel.apache.org/manual/commercial-camel-offerings.html On Thu, Sep 8, 2022 at 2:15 PM Som

RE: netty http component - SNI missing in SSL handshake

2022-09-08 Thread Somvanshi, Ashitosh
Hello Team, Can we expect any support here or at least an acknowledgement? Thanks and Regards, Ashitosh Somvanshi | PS CoE Diebold Nixdorf www.DieboldNixdorf.com From: Somvanshi, Ashitosh Sent: Monday, September 5, 2022 8:52 PM To: users@camel.apache.org Cc: Bhed

Re: Processor with constructor in a routetemplate

2022-09-08 Thread Claus Ibsen
You should NOT register the processor yourself, this is done by the template bean thingy automatically On Thu, Sep 8, 2022 at 1:39 PM ski n wrote: > OK, sorry, I actually read the documentation on bindings and did use > {{MyProcessor}} as the bean name. > > But it didn't work. > > I register my

Re: Processor with constructor in a routetemplate

2022-09-08 Thread ski n
OK, sorry, I actually read the documentation on bindings and did use {{MyProcessor}} as the bean name. But it didn't work. I register my bean/processor as: registry.bind("MyProcessor", new MyProcessor("")); But when I run it, I got: Failed to resolve endpoint: bean://MyProcessor-1?method=proce

Re: Processor with constructor in a routetemplate

2022-09-08 Thread Claus Ibsen
Hi No you cannot - you mix standard Java with Camel "parsing" the model when it calls the configure() method. It would be the same in regular Camel route. You basically do standard Java code with a new constructor and pass in a string literal. Camel is not in use at that point. In your template b

Processor with constructor in a routetemplate

2022-09-08 Thread ski n
Hi, I have a routetemplate as follows: routeTemplate("processortemplate") .templateParameter("out") .from("direct:in") .process("MyProcessor") .to("{{out}}"); This works. The processor is registered an the called by reference. Now I added a constructor argum

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread Claus Ibsen
Hi That is what JMS has with message groups https://activemq.apache.org/message-groups On Thu, Sep 8, 2022 at 4:07 AM Mansour Al Akeel wrote: > I have a stream of commands that needs to be processed in parallel for > performance reasons, and to be grouped on a key for sequential processing >

Re: Group Commands for parallel processing (dynamic routes)

2022-09-08 Thread ski n
Hi Mansour, Your use case sounds a bit complicated. On one hand you need parallel processing, on the other hand you need blocks/sequential processing. This may have a bad smell, but I don't know the details of your use case. I would say try to come up with a way for real parallel processing where