org.apache.cocoon.components.jms
Interface JMSConnection

All Known Implementing Classes:
JMSConnectionImpl

Deprecated. use JMSConnectionManager instead

public interface JMSConnection

JMSConnection properties container plus utilities.

Version:
CVS $Id: JMSConnection.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
haul

Field Summary
static String ROLE
          Deprecated.  
 
Method Summary
 TopicPublisher getPublisher()
          Deprecated. Get a new TopicPublisher for this connection.
 TopicSession getSession()
          Deprecated. Get the session associated with this connection.
 void registerListener(MessageListener listener, String selector)
          Deprecated. Register a new TopicListener for this connection.
 

Field Detail

ROLE

static final String ROLE
Deprecated. 
Method Detail

registerListener

void registerListener(MessageListener listener,
                      String selector)
                      throws CascadingException,
                             JMSException,
                             NamingException
Deprecated. 
Register a new TopicListener for this connection.

Parameters:
listener -
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.
JMSException
NamingException

getPublisher

TopicPublisher getPublisher()
                            throws JMSException,
                                   NamingException
Deprecated. 
Get a new TopicPublisher for this connection.

Returns:
new TopicPublisher
Throws:
JMSException
NamingException

getSession

TopicSession getSession()
                        throws NamingException,
                               JMSException
Deprecated. 
Get the session associated with this connection. This is needed for example to create messages.

Returns:
TopicSession
Throws:
NamingException
JMSException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.