camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Needing to push objects out for some reason
Date Sat, 21 May 2011 12:20:12 GMT
On Sat, May 21, 2011 at 2:07 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> On Thu, May 19, 2011 at 3:52 PM, sub3 <steve@subwest.com> wrote:
>> I found a partial solution.  If I delay starting any components until 10
>> seconds after starting ActiveMQ, everything is fine. My guess is that it
>> won't route items already on the queue, if it was there before the
>> camel-context file initializes?
>>
>> Is there any control I can use, from a client pov, to check to make sure the
>> routing is initialized?
>
> Camel has API to check the state of its routes / endpoints / components etc.
>
> CamelContext -> getRoute -> getStatus
>
> You may need to cast the Route to DefaultRoute.
> In fact we should probably make the getStatus part of the Route interface.
>
>

Its

CamelContext -> getRouteDefinition("idOfMyRoute") -> getStatus(camelContext)

eg the RouteDefinition has a getStatus you can use.


>
>
>>
>> Thanks.
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Needing-to-push-objects-out-for-some-reason-tp4393878p4409772.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message