This content has been marked as final.
Show 1 reply
-
1. Re: HornetQDestination implementing both Topic and Queueu
timfox May 10, 2010 12:17 PM (in response to clebert.suconic)Clebert Suconic wrote:
It's a common use case on users doing this:
if (destination instanceof Queue) ... then it's a queue
No. That would be user FAIL.
Just because the object implements the Topic interface does not mean the INSTANCE is a topic. It could be a queue too.
It's the same thing with out connection factories. The connection factory class implements all the connection factory instances. That does not mean the connection factory INSTANCE is all of those types.