Uniqueness of JMSMessageID
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tim_Rickard
Posted On:   Monday, March 18, 2002 06:37 AM

Is the JMSMessageID unique within a router network and if so for how long. For example if the network is stopped and restarted will the JMSMessageID of any unprocessed messages still be unique in regard to new messages.

Re: Uniqueness of JMSMessageID

Posted By:   Andreas_Mueller  
Posted On:   Monday, March 18, 2002 09:26 AM

The JMS message id is constructed at the client. It consists of:



hostname + "-" + System.currentTimeMillis() + (inc++)



The latter is an increment for the case that multiple messages are sent within the same millisecond.
About | Sitemap | Contact