I have a simple application that uses a JMS message to update other clustered members of the application. This is a pub/sub scenario. In an effort to prevent duplication of work, I use VMID SERVER_ID = new VMID() to obtain the unique ID for the server who originated the message. I post this information on the queue with no problem. When the message comes off the queue, the MDB takes the current serverID by using VMID SERVER_ID = new VMID(). Next, I compare the two ids.
This application is running on my box, a single JVM/Server, but for some reason I get two separate ServerIDs.
Current ServerID[3c39e4d1cb654eef:39963df5:10563d911b1:-7ffd] Originating ServerID[3c39e4d1cb654eef:39963df5:10563d911b1:-7ffc]