Usage of FluentProducerTemplate

2020-08-19 Thread Paul Fraser
Hi, Netty, Camel, Karaf and OSGi, Karaf 4.3 SNAPSHOT,  Camel 3.5 SNAPSHOT. Camel Context OsgiDefaultCamelContext A bit confused about using templates. Should the following code work? Is it all that is needed to send a byte array to the dest definition? Paul Fraser String  destDefinition =

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Daniel Langevin
Hi Gerald, the only way i know to do that is to refer this way. uri="direct-vm:xx?block=true&timeout=30" hope this help! Daniel >>> De : Gerald Kallas À :, Daniel Langevin Date : 2020-08-19 00:15 Objet : Re: Rép. : Camel REST DSL with servlet - API URL? The idea is to d

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Gerald Kallas
Thanks Daniel. Not sure if I did explain right. I want to define in one common Blueprint file and refer in an other blueprint file to the registered servlet above like Is there a way in

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Daniel Langevin
Hi, i don't think is possible, because only one consumer at a time. until the message is delivered May be this aproach help you. 1st Blueprint Context named: WEB2FSO, can have the definition of all your Rest Definitions. .. .. 2nd Blueprint Context named API001

Re: MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-19 Thread Alex Soto
Any update on this, JB? Best regards, Alex soto > On Aug 15, 2020, at 4:06 AM, Jean-Baptiste Onofre wrote: > > Hi, > > It seems to be related to a change on the camel-bean processor. > > Let me reproduce it and make a bisect to identify the change. > > Thanks ! > > Regards > JB > >> Le

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Alex Soto
Hi Gerald, All Blueprint files in the same bundle share the same namespace/context, so yes, a bean defined in one file is visible in another, as long as it is the same bundle. I usually have one file “beans.xml” where all beans are declared, and a separate file “camel-context.xml” defining the

Re: How to configure shutdown timeout

2020-08-19 Thread Alex Soto
Thanks Alex, Also looking for a way to configure this in a Blueprint XML file. Best regards, Alex soto > On Aug 18, 2020, at 11:13 AM, Alex Dettinger wrote: > > Hi Alex, > > It seems the timeout is tuned after the context creation. One may achieve > the desired result with either: > @Ove

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Gerald Kallas
Thanks Alex. That seems to be a problem as I'll have every Blueprint file is being deployed separately and resides so far in a dedicated bundle. I wonder if I could access the servlet in the registry anyway from a dedicated bundle/Blueprint file as it is registered with org.apache.camel.compon

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Alex Soto
I am not sure you can do that but can try. Also, I don’t understand why you would want to share a servlet across bundles. Best regards, Alex soto > On Aug 19, 2020, at 12:02 PM, Gerald Kallas wrote: > > Thanks Alex. > > That seems to be a problem as I'll have every Blueprint file is being

Re: Problems passing Camel VM messages between multiple Spring Boot applications in Tomcat

2020-08-19 Thread Steve973
Just to give some feedback and closure from my question a whole ago, I ended up just using a JMS queue to message between the different contexts. It worked fine, so thank you for letting me know that I should do things another way. Since the latest documentation describes how to use the VM compone

Re: Rép. : Camel REST DSL with servlet - API URL?

2020-08-19 Thread Gerald Kallas
A servlet runs with a context (path). As we'll define and deploy the Blueprint files/bundles independently they should nevertheless share the same servlet context to avoid the unique context path for every HTTP consumer. Best Gerald > Alex Soto hat am 19.08.2020 19:19 geschrieben: > > > I

SJMS2 durable subscription lazy re-connect

2020-08-19 Thread Shultz, Dmitry
Hi All, I'm migrating the service from camel-jms to came-sjms2 component (connecting to Artemis brokers) and it all good except of one change in behaviour which breaks the Kubernetes redeployment. When service app (helm) is redeployed using Ranched UI it brings the new service pod up, checks i

Camel consul leader election

2020-08-19 Thread Amin Mohammed-Coleman
Hi there I have integrated camel and consult to perform leader election when it come to polling. So far everything is working as expected. If I kill on of my pods then another pod becomes the leader. One thing I have noticed is that when I invalidate the session via Consul UI the camel service thr

Re: Hibernate 5 session exception - after camel 3 migration

2020-08-19 Thread rinilnath r
Can someone help me please with the below mentioned issue? Thanks and Regards, Rinilnath Mobile#9786285451 On Mon, Aug 17, 2020, 9:55 AM rinilnath r wrote: > Hi, > > I am working for a project that involves Camel 2.x and that is only to > read files from the folder and process (using business l

Re: Hibernate 5 session exception - after camel 3 migration

2020-08-19 Thread Shultz, Dmitry
I believe reproducer will help to get some help in this case. Cheers, Dmitry From: rinilnath r Sent: 19 August 2020 18:47 To: users@camel.apache.org Subject: Re: Hibernate 5 session exception - after camel 3 migration Can someone help me please with the below me

Re: SJMS2 durable subscription lazy re-connect

2020-08-19 Thread Claus Ibsen
Hi In Camel 3 there is a route controller you can use to configure Camel to restart the failing route up till X times. In Camel 2 that controller was implemented as an experiment so you may find it there and try to use it for 2.25.x On Wed, Aug 19, 2020 at 10:08 PM Shultz, Dmitry wrote: > > Hi A

Re: MethodNotFoundException upgrading to Camel 3.4.2 (Blueprint and Karaf)

2020-08-19 Thread Jean-Baptiste Onofre
Hi Alex, Not yet, I will get back on this one asap. Did you create a Jira about that ? I will keep you posted. Regards JB > Le 19 août 2020 à 15:21, Alex Soto a écrit : > > Any update on this, JB? > > Best regards, > Alex soto > > > > >> On Aug 15, 2020, at 4:06 AM, Jean-Baptiste Onofre