-
1. Re: How unique is MessageID in JBossMQ ?
adrian.brock Jul 25, 2003 10:38 AM (in response to sankotm)It is globally unique across all machines.
But don't rely on that if you want to port to something
other than jboss.
Regards,
Adrian -
2. Re: How unique is MessageID in JBossMQ ?
sankotm Jul 29, 2003 4:32 AM (in response to sankotm)ok. Source code (v3.2.1) shows that it uses ClientID, System time and sequence number (lastMessageID).
that doesn't seem too globally unique.
can it not happen that there are two clients with the same id ?
Michal -
3. Re: How unique is MessageID in JBossMQ ?
stephanenicoll Jul 31, 2003 4:36 AM (in response to sankotm)Is it unique accross the time as well?
-
4. Re: How unique is MessageID in JBossMQ ?
bmadigan2003 Jul 31, 2003 3:46 PM (in response to sankotm)That depends on how ClientID is generated. In a UUID, it would be based on a machine's MAC address. This is not done here I think, because a message ID does not need to be a UUID (and it would require a JNI call). Two clients with the same name probably could not communicate because there would be no way to differentiate between the two. So, IMHO the method for generating messageIds is sufficient.
-
5. Re: How unique is MessageID in JBossMQ ?
adrian.brock Aug 4, 2003 1:08 PM (in response to sankotm)The same ClientID cannot be connected twice concurrently.
So client id and time should be enough.
If you have some use case where two different
machines use the same ClientID close together
and the times are not in synch then it might be possible
to get a collision.
But even in this case, the JBoss server won't be confused
because the first connection has to be disconnected before
the second can reconnect.
Regards,
Adrian