4 Replies Latest reply on May 7, 2010 11:35 AM by clebert.suconic

    Connection.setClientID() not throwing InvalidClientIDException on a duplicate ClientID?

    fbroek

      Hi,

       

      I have been trying out the HornetQ 2.0.0.GA release in a standalone mode (no configuration changes, just running bin/run.bat) and I noticed that it allows duplicate clientIDs on a when using javax.jms.Connection.setClientID(). I was assuming that I would get a InvalidClientIDException when trying to set it for the second time (as per the JMS 1.1 API). When running the attached simple unit test against an old JBoss 4.0.2 I had lying around, it passes, but not against HornetQ. Am I missing something obvious here or is this similar to https://jira.jboss.org/jira/browse/JBMESSAGING-791

       

      Thanks,

      Frederik