You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by blommish <jo...@gmail.com> on 2015/03/27 09:32:22 UTC

Possible to check that endpoints exist?

Is it possible to verify that all outgoing endpoints exists?

For example
from("wmq:queue:A").to("wmq:queue:B")

It will validate A on the fly, since it tries to get data from the A queue.
But B is "validated" once it tries to send the message to that endpoint. Is
it possible validate that queue somehow? 
In case of B not existing, that won't be notified until a message is tried
to be sent there in runtime. 



--
View this message in context: http://camel.465427.n5.nabble.com/Possible-to-check-that-endpoints-exist-tp5764884.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Possible to check that endpoints exist?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You would have to write some code that checks if those queues exists.

You can maybe uses the browse endpoint to attempt to browse the queue.
Or use some JMS API to create a consumer of the destination and see if
that fails. Assuming that creating a consumer on a non existing
destination will fail and therefore a way of knowing if the queue
exists or not.



On Fri, Mar 27, 2015 at 10:54 AM, blommish <jo...@gmail.com> wrote:
> Sorry about that.
>
> Yes its a (transactional) JmsComponent for websphere message queue
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Possible-to-check-that-endpoints-exist-tp5764884p5764887.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Possible to check that endpoints exist?

Posted by blommish <jo...@gmail.com>.
Sorry about that.

Yes its a (transactional) JmsComponent for websphere message queue



--
View this message in context: http://camel.465427.n5.nabble.com/Possible-to-check-that-endpoints-exist-tp5764884p5764887.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Possible to check that endpoints exist?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Is wmq a JMS component for WebSphere MQ or what component is it?

On Fri, Mar 27, 2015 at 9:32 AM, blommish <jo...@gmail.com> wrote:
> Is it possible to verify that all outgoing endpoints exists?
>
> For example
> from("wmq:queue:A").to("wmq:queue:B")
>
> It will validate A on the fly, since it tries to get data from the A queue.
> But B is "validated" once it tries to send the message to that endpoint. Is
> it possible validate that queue somehow?
> In case of B not existing, that won't be notified until a message is tried
> to be sent there in runtime.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Possible-to-check-that-endpoints-exist-tp5764884.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/