title: What's the Purpose of setting the clientID for JMS publisher / consumer?
body: <p>I understand that i need to set the clientId and subscription name when writing the jms topic subscriber for my durable topics.</p>
  
  <p>But Whats the purpose of setting the clientID when publishing the TOPIC ? I have seen people setting the client Id even for publisher / consumer, but no one explained that why it is required.</p>
  
  <pre><code>ConnectionFactory conFactory =  this.getConnectionFactory();
  Connection connection = conFactory.createConnection();
  
  connection.setClientID("WHATS_MY_PURPOSE"); // Why do we need clientID while publishing the TOPIC from consumer / publisher
  
  connection.start();
  MessageProducer producer = session.createProducer(destination);
  </code></pre>