code: public void unsubscribeDurable(String subscriptionName)
              throws MessagingException {
          try {
              Session session =
                  connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
              MessageConsumer consumer = durableSubscriptions.get(subscriptionName);
              if(consumer != null) {
                  consumer.close();
              }
              session.unsubscribe(subscriptionName);
          } catch (JMSException jmse) {
              String errMsg = "Unable to unsubscribe from subscription with name: "
                            + subscriptionName + " due to exception: "
                            + jmse.getMessage();
              logger.debug(errMsg, jmse);
              throw new MessagingException(errMsg, jmse);
          }
      }
docs: Removes the durable subscription with the given name.
  
  @param subscriptionName - name of the durable subscription
  @throws MessagingException