com.caucho.jms.jdbc
Class JdbcTopic

java.lang.Object
  extended by com.caucho.jms.jdbc.JdbcTopic

public class JdbcTopic
extends java.lang.Object

A jdbc topic.


Constructor Summary
JdbcTopic()
           
 
Method Summary
 int getId()
          Returns the JDBC id for the topic.
 java.lang.String getName()
           
 java.lang.String getTopicName()
          Returns the topic's name.
 void init()
          Initializes the JdbcTopic
 boolean isTopic()
          Returns true for a topic.
 void send(Message message)
          Sends the message to the queue.
 void setTopicName(java.lang.String name)
          Sets the topic's name.
 java.lang.String toString()
          Returns a printable view of the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcTopic

public JdbcTopic()
Method Detail

getTopicName

public java.lang.String getTopicName()
Returns the topic's name.


getName

public java.lang.String getName()

setTopicName

public void setTopicName(java.lang.String name)
Sets the topic's name.


isTopic

public boolean isTopic()
Returns true for a topic.


getId

public int getId()
Returns the JDBC id for the topic.


init

@PostConstruct
public void init()
          throws ConfigException,
                 java.sql.SQLException
Initializes the JdbcTopic

Throws:
ConfigException
java.sql.SQLException

send

public void send(Message message)
          throws JMSException
Sends the message to the queue.

Throws:
JMSException

toString

public java.lang.String toString()
Returns a printable view of the queue.

Overrides:
toString in class java.lang.Object