Hi

Sounds like you have a route that calls direct://StartSqlJobRoute and
that you dont have a consumer for it, and that Camel waits for it.

On Thu, Feb 14, 2019 at 7:38 AM Riggy Software
<riggy-softw...@hotmail.com> wrote:
>
> Hello,
>
> I’m experiencing a strange issue. I’m not too sure what is occurring.
>
> I have a spring route component, which is covered by tests, however I have 
> now added a restConfiguration() and it is causing a direct route to not be 
> consuming.
>
> The rest route doesn’t have anything in common with the direct route that is 
> now not consuming (without the rest everything is working).
>
> Logs also show all routes as started, but this seems not to be the case.
>
> Any idea what’s happening here? Why is the rest affecting my direct routes?
>
> restConfiguration()
> .component("restlet")
> .host("localhost")
> .port(port)
> .bindingMode(RestBindingMode.auto);
>
>
> rest("/scheduler")
> .get("/recoverJob/{jobName}")
>     .to(“log:notEvenDoingAnything”);
>
>
> Logs:
>
> 06:31:11.841 [main] DEBUG org.apache.camel.spring.SpringCamelContext - 
> start() took 11877 millis
> 06:31:11.845 [main] DEBUG 
> org.apache.camel.component.direct.DirectBlockingProducer - Starting producer: 
> Producer[direct://StartSqlJobRoute]
> 06:31:11.845 [main] DEBUG org.apache.camel.impl.ProducerCache - Adding to 
> producer cache with key: direct://StartSqlJobRoute for producer: 
> Producer[direct://StartSqlJobRoute]
> 06:31:11.845 [main] DEBUG org.apache.camel.impl.ProducerCache - >>>> 
> direct://StartSqlJobRoute Exchange[]
> 06:31:11.853 [main] DEBUG 
> org.apache.camel.impl.InterceptSendToEndpointProcessor - Sending to endpoint: 
> direct://StartSqlJobRoute is intercepted and detoured to: 
> Producer[mock://direct:StartSqlJobRoute] for exchange: Exchange[ID-users-]
> 06:31:11.855 [main] DEBUG org.apache.camel.component.mock.MockEndpoint - 
> mock://direct:StartSqlJobRoute >>>> 0 : Exchange[ID-users-] with body: null 
> and headers:{breadcrumbId=ID-users-, 
> CamelInterceptedEndpoint=direct://StartSqlJobRoute}
> 06:31:12.361 [main] DEBUG 
> org.apache.camel.component.direct.DirectBlockingProducer - Waited 506 for 
> consumer to be ready
> 06:31:12.866 [main] DEBUG 
> org.apache.camel.component.direct.DirectBlockingProducer - Waited 1011 for 
> consumer to be ready
> 06:31:13.367 [main] DEBUG 
> org.apache.camel.component.direct.DirectBlockingProducer - Waited 1512 for 
> consumer to be ready
> 06:31:13.871 [main] DEBUG 
> org.apache.camel.component.direct.DirectBlockingProducer - Waited 2016 for 
> consumer to be ready…
>
>
>
> Thanks for any help,
>
> Naseem
>
>
>
>
>
>
>
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to