public void configure(EndpointMessageListener listener) {
    if (isDisableReplyTo()) {
      listener.setDisableReplyTo(true);
    }
    if (isEagerLoadingOfProperties()) {
      listener.setEagerLoadingOfProperties(true);
    }
    if (getReplyTo() != null) {
      listener.setReplyToDestination(getReplyTo());
    }

    // TODO: REVISIT: We really ought to change the model and let JmsProducer
    // and JmsConsumer have their own JmsConfiguration instance
    // This way producer's and consumer's QoS can differ and be
    // independently configured
    JmsOperations operations = listener.getTemplate();
    if (operations instanceof JmsTemplate) {
      JmsTemplate template = (JmsTemplate) operations;
      template.setDeliveryPersistent(isReplyToDeliveryPersistent());
    }
  }
Exemple #2
0
 protected void createMessageListener(JmsEndpoint endpoint, Processor processor) {
   messageListener = new EndpointMessageListener(endpoint, processor);
   messageListener.setBinding(endpoint.getBinding());
 }