Interface WmQueueSender

All Superinterfaces:
javax.jms.MessageProducer, javax.jms.QueueSender, WmMessageProducer

public interface WmQueueSender extends WmMessageProducer, javax.jms.QueueSender
Interface defining webMethods extensions to javax.jms.QueueSender.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(javax.jms.Queue queue, javax.jms.Message[] messages)
    Sends multiple messages to a queue for an unidentified message producer.
    void
    send(javax.jms.Queue queue, javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive)
    Sends multiple messages to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.

    Methods inherited from interface javax.jms.MessageProducer

    close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive

    Methods inherited from interface javax.jms.QueueSender

    getQueue, send, send, send, send
  • Method Details

    • send

      void send(javax.jms.Queue queue, javax.jms.Message[] messages) throws javax.jms.JMSException
      Sends multiple messages to a queue for an unidentified message producer. Uses the QueueSender's default delivery mode, priority, and time to live.

      Typically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent.

      Parameters:
      queue - the queue to send the messages to
      messages - the messages to send
      Throws:
      javax.jms.JMSException - if the JMS provider fails to send the message due to some internal error.
      javax.jms.MessageFormatException - if an invalid message is specified.
      javax.jms.InvalidDestinationException - if a client uses this method with an invalid queue.
      See Also:
      • MessageProducer.getDeliveryMode()
      • MessageProducer.getTimeToLive()
      • MessageProducer.getPriority()
    • send

      void send(javax.jms.Queue queue, javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
      Sends multiple messages to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.

      Typically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent.

      Parameters:
      queue - the queue to send the messages to
      messages - the messages to send
      deliveryMode - the delivery mode to use
      priority - the priority for this message
      timeToLive - the message's lifetime (in milliseconds)
      Throws:
      javax.jms.JMSException - if the JMS provider fails to send the message due to some internal error.
      javax.jms.MessageFormatException - if an invalid message is specified.
      javax.jms.InvalidDestinationException - if a client uses this method with an invalid queue.