This content has been marked as final.
Show 3 replies
-
1. Re: Identifying is a queue already exists
jbertram Apr 30, 2014 10:17 AM (in response to yairogen) -
2. Re: Re: Identifying is a queue already exists
yairogen Apr 30, 2014 10:22 AM (in response to jbertram)I've tried this:
HornetQMessagingFactory.getSession().queueQuery(new SimpleString(queueName));
But it doesn't fail even when the queue doesn't exist. Or did you mean it won't fail and I need to investigate the state on the result object (QueueQuery)?
-
3. Re: Re: Identifying is a queue already exists
jbertram Apr 30, 2014 10:28 AM (in response to yairogen)Or did you mean it won't fail and I need to investigate the state on the result object (QueueQuery)?
That's exactly what I meant since it appeared to me that your goal was to avoid a failure/exception. To be specific, look at isExists() on the QueueQuery that is returned.