Bidirectional netty component

2019-12-05 Thread Ludwig Müller
Hi guys,   I'm struggleing while using the Apache Camel Netty Component. I want connect to a different system using a minimal route like this: from("netty:tcp://localhost:4314?clientMode=true") .log("${body}") .end(); My Problem is, that in order to receive any data I have to send some subsc

Re: OpenHub framework - Apache Camel, but improved ...

2019-12-05 Thread Claus Ibsen
Hi Petr The ASF Board and Camel PMC have been asked to look at 3rd party projects that may violate ASF policy and marks. Your project with home page at http://www.openhub.cz/ And on github at https://github.com/OpenWiseSolutions/openhub-framework Is doing this with the word "for enterprise" as

Re: Bidirectional netty component

2019-12-05 Thread Claus Ibsen
Hi The clientMode was not built with a feature to send some kind of welcome/login message or whatnot. For such use case you may built it using plain Netty, or try to implement such a feature in camel-netty. For example there can be some kind of interface ClientModeHandler void onConnection voi

AggregationStrategy and multiple consumers

2019-12-05 Thread Valdis Andersons
Hi All, I've searched for this topic now a fair bit and I'm not quite getting a conclusive answer to my issue. What we've noticed the last while is that in some cases under high enough load with multiple consumers on the Aggregator route some messages get overwritten in the aggregation result

Camel-3 shutdown triggered right after start

2019-12-05 Thread Dennis Holunder
Hi, I'm trying to migrate a CDI Route to camel-3 and seeing in log that the route is starting graceful shutdown right after start. 12:04:00 [main] INFO o.a.camel.impl.DefaultCamelContext Apache Camel 3.0.0 (CamelContext: camel-1) started in 3.683 seconds 12:04:00 [main] DEBUG o.a.c.c.quartz.Qua

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
Hi You can try to debug and set a breakpoint and see maybe if there is some way to know. Also how do you run your cdi app. On Thu, Dec 5, 2019 at 1:10 PM Dennis Holunder wrote: > > Hi, > > I'm trying to migrate a CDI Route to camel-3 and seeing in log that > the route is starting graceful shutd

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Dennis Holunder
I ran it from IDE using Main: public class MyMain { public static void main(String[] args) throws Exception { org.apache.camel.cdi.Main camel = new org.apache.camel.cdi.Main(); camel.run(args); } } Am Do., 5. Dez. 2019 um 13:15 Uhr schrieb Claus Ibsen-2 [via Camel] : > > H

Re: Too many connections with Camel and RabbitMQ

2019-12-05 Thread Alessandro Hoss
Hi, I did a lot of searches without success on finding a way of doing this. I've also tried using CachingConnectionFactory from spring-rabbit, but it doesn't work since it should be an instance of com.rabbitmq.client.ConnectionFactory. Do you happen to have an example? Thanks for the help. Em q

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Dennis Holunder
Hi Claus, Attached a small reproducer. Could you please have a look? Thanks Am Do., 5. Dez. 2019 um 13:51 Uhr schrieb dennisholu [via Camel] : > > I ran it from IDE using Main: > > public class MyMain { > public static void main(String[] args) throws Exception { > org.apache.camel.cdi

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
Hi The attached .zip file works for me. If I run it from IDEA then it keeps running. However the stacktrace you had had quartz in it, which this .zip do not etc. 2019-12-05 14:56:01,039 [main ] INFO DefaultRoutesCollector - Loading additional Camel XML rests from: classpath:c

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
Also you can try with try { main.run } catch (Throwable e) { e.printSt... to catch any kind of error and log/print it On Thu, Dec 5, 2019 at 2:57 PM Claus Ibsen wrote: > > Hi > > The attached .zip file works for me. If I run it from IDEA then it > keeps running. > > However the stacktrace

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Dennis Holunder
Yes, the project keeps running, but the message about shutdown is still visible in the log. The log I posted above was from another project. In the app from attached zip it is: 2019-12-05 15:12:26,903 [main ] INFO DefaultCamelContext - Apache Camel 3.0.0 (CamelContext: camel-1)

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Dennis Holunder
its because routes are removed and stopped in DefaultModel::addRouteDefinitions method. Stop triggers shutdown task And here is the trace: "main@1" prio=5 tid=0x1 nid=NA runnable java.lang.Thread.State: RUNNABLE at org.apache.camel.impl.engine.DefaultShutdownStrategy.doShutdown(DefaultShutdo

Re: Camel-3 shutdown triggered right after start

2019-12-05 Thread Claus Ibsen
Hi I wonder if its because the routes are discovered twice and gets added and re-added again. Standalone CDI is not a often used runtime, so nobody have noticed anything. You are welcome to debug and see if you can spot something. Its possible in the main class of camel-cdi (that component is a b

Camel 2.x To Camel 3.0 Migration

2019-12-05 Thread Bhavesh Mistry
Hi All, I am upgrading Camel 2.x to release 3.0. Any help is greatly appreciated. http4://localhost:9181/api?bridgeEndpoint=true&throwExceptionOnFailure=false& *urlRewrite*=#*ncsurlrewrite* Deprecated: https://camel.apache.org/components/2.x/urlrewrite.html https://jar-download.com/artifacts/

Re: Camel 2.x To Camel 3.0 Migration

2019-12-05 Thread Claus Ibsen
Hi See the migration guide in general https://camel.apache.org/manual/latest/camel-3-migration-guide.html The url rewrite component is deprecated on 2.x, and its no longer included in Camel. For url rewriting / proxying then use http server products that are better as this klind, like nginx, apac