Interface JMSDestination

All Known Implementing Classes:
JMSQueueAdapter, JMSTopicAdapter

public interface JMSDestination
A facade for a JMS Queue or Topic.
Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:38 $ by $Author: jamesagnew $
Author:
Bryan Tripp
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Creates a new session, sender/publisher, and receiver/subscriber.
    javax.jms.TextMessage
     
    void
    Closes the JMS session.
    javax.jms.Connection
     
     
    boolean
     
    javax.jms.Message
     
    void
    send(javax.jms.Message theMessage)
    Sends the given message to the JMS destination.
  • Method Details

    • getName

      String getName() throws javax.jms.JMSException
      Returns:
      the name of the Queue or Topic
      Throws:
      javax.jms.JMSException
    • createMessage

      javax.jms.TextMessage createMessage() throws javax.jms.JMSException
      Returns:
      a new JMS Message object.
      Throws:
      javax.jms.JMSException
    • connect

      void connect() throws javax.jms.JMSException
      Creates a new session, sender/publisher, and receiver/subscriber.
      Throws:
      javax.jms.JMSException
    • disconnect

      void disconnect() throws javax.jms.JMSException
      Closes the JMS session.
      Throws:
      javax.jms.JMSException
    • isConnected

      boolean isConnected()
      Returns:
      true if connected.
    • getConnection

      javax.jms.Connection getConnection()
      Returns:
      the JMS Connection underlying this destination
    • send

      void send(javax.jms.Message theMessage) throws javax.jms.JMSException
      Sends the given message to the JMS destination.
      Parameters:
      theMessage - message to send
      Throws:
      javax.jms.JMSException
    • receive

      javax.jms.Message receive() throws javax.jms.JMSException
      Returns:
      a message received from the JMS destination.
      Throws:
      javax.jms.JMSException