Monitor Route Deployment Success

2020-01-14 Thread Gerald Kallas - mailbox.org
Dear community, I‘m searching for best practices and recommendations how to monitor the deployment success/failure of a Camel route (Blueprint DSL). Best would be finally to get some events that could trigger another (monitoring) Route. Any hints and tips are welcome. Best - Gerald

Re: camel restart context

2020-01-14 Thread Larry Shields
If you need a simple example for restarting a route from another route, I have an example on Github below: https://github.com/runstache/camel-restart-routes There are 2 routes, the Maintenance route will restart the other routes based on a file drop. On Tue, Jan 14, 2020 at 6:38 AM Claus Ibsen w

ProducerTemplate.request() not returning complete Exchange.

2020-01-14 Thread Wilken Marci J
Based on the documentation I was reading the ProducerTemplate.request(, Processor) should return the Exchange information from the route that was called. When I am running my test on this it is returning the body information in the exchange.getOut().getBody() but the exchange.getOut().getHeade

Simple condition doesn't always work with the 'contains' operator (Camel 3.0.0)

2020-01-14 Thread Gerald Kallas
Dear community, I've following Blueprint DSL snippet inside Camel 3.0.0 .. .. ${body.class()} contains 'GroupedExchangeList' .. The first log message is been written like .. body class: class org.apache.camel.processor.aggregate.AbstractListAggregationStrategy$GroupedExchangeList The s

Re: [EXTERNAL] Re: query timeout not working in JDBC or SQL component

2020-01-14 Thread Claus Ibsen
Hi Debug the code and see if the queryTimeout is set on the JDBC statement - that is after all what Camel does. Whether and how the timeout works is the JDBC driver. On Tue, Jan 14, 2020 at 4:27 PM Gv, Shivakumar wrote: > > Hi Claus, > > Thanks for the reply. Yes I agree with your point . I jus

RE: [EXTERNAL] Re: query timeout not working in JDBC or SQL component

2020-01-14 Thread Gv, Shivakumar
Hi Claus, Thanks for the reply. Yes I agree with your point . I just mentioned my observation that socket timeout is working. But my requirement is to set queryTimeout and both the below methods did not work. for jdbc: i tried passing timeout value a > jdbc:dataSource?statement.queryTimeout=

Re: query timeout not working in JDBC or SQL component

2020-01-14 Thread Claus Ibsen
Hi A socket timeout and a query timeout are likely not the same. Socket is network level. Query is likely on the database level. On Tue, Jan 14, 2020 at 4:00 PM Gv, Shivakumar wrote: > > Hi Team, > > I am using camel version: 2.23.1 > > Query timeout not working in both JDBC or SQL component. >

query timeout not working in JDBC or SQL component

2020-01-14 Thread Gv, Shivakumar
Hi Team, I am using camel version: 2.23.1 Query timeout not working in both JDBC or SQL component. for jdbc: i tried passing timeout value a jdbc:dataSource?statement.queryTimeout=1&statement.maxRows=0 for sql: i tried passing timeout value a sql:quey?template.queryTimeout=1 but if i s

RE: Stub component usage patterns

2020-01-14 Thread k.j.chernov
Hi. For example, imagine a route which is doing some work and sending the message to jms:queue:... More than that, it's packaged as an OSGi bundle which is only accepting some external configuration from Configuration Admin. And you need to write an integration test. Then you would need a JMS b

Re: camel restart context

2020-01-14 Thread Claus Ibsen
Hi Yeah likely, see the FAQ https://camel.apache.org/manual/latest/faq/how-can-i-stop-a-route-from-a-route.html On Tue, Jan 14, 2020 at 11:45 AM Damien Nicolas wrote: > > Hello, > > I need to restart the camel context with a quartz at fixed interval. > But when I do context.stop() and then conte

camel restart context

2020-01-14 Thread Damien Nicolas
Hello, I need to restart the camel context with a quartz at fixed interval. But when I do context.stop() and then context.start() inside quartz processing; the context stop but doesnt start again... Also, when I remotely invoke the JMX camel restart, it works. Is this a normal behaviour? Thanks.