| org.apache.cocoon.components.jms.JMSConnection
All known Subclasses: org.apache.cocoon.components.jms.JMSConnectionImpl,
Method Summary | |
TopicPublisher | getPublisher() Get a new TopicPublisher for this connection. | TopicSession | getSession() Get the session associated with this connection. | void | registerListener(MessageListener listener, String selector) Register a new TopicListener for this connection.
Parameters: listener - Parameters: selector - throws: CascadingException - if the connection was not successfully initialized, JMSException or NamingException if errors occur during JMS methods. |
getPublisher | TopicPublisher getPublisher() throws JMSException, NamingException(Code) | | Get a new TopicPublisher for this connection.
new TopicPublisher throws: JMSException - throws: NamingException - |
getSession | TopicSession getSession() throws NamingException, JMSException(Code) | | Get the session associated with this connection. This is needed for example to
create messages.
TopicSession throws: NamingException - throws: JMSException - |
registerListener | void registerListener(MessageListener listener, String selector) throws CascadingException, JMSException, NamingException(Code) | | Register a new TopicListener for this connection.
Parameters: listener - Parameters: selector - throws: CascadingException - if the connection was not successfully initialized, JMSException or NamingException if errors occur during JMS methods. It is up to the MessageListener to determine how to handle this failure. |
|
|