code: public void stopDurable(String subscriptionName) throws MessagingException {
          try {
              MessageConsumer durableSubscriber =
                      durableSubscriptions.get(subscriptionName);
              if (durableSubscriber != null) {
                  durableSubscriber.close();
              }
          } catch (JMSException jmse) {
              throw new MessagingException("Exception encountered attempting to "
                      + "stop durable subscription with name: "
                      + subscriptionName + ". Exception message: "
                      + jmse.getMessage(), jmse);
          }
      }
docs: Stops a durable message consumer. Note that this is not
  the same as unsubscribing. When a durable message consumer is
  restarted all messages received since it was stopped will be
  delivered.
  
  @param subscriptionName - the name of the subscription
  @throws MessagingException