org.apache.cocoon.components.jms
Class JMSConnectionManagerImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.jms.JMSConnectionManagerImpl
- All Implemented Interfaces:
- Disposable, Initializable, Startable, Configurable, LogEnabled, Serviceable, ThreadSafe, JMSConnectionEventNotifier, JMSConnectionManager
public class JMSConnectionManagerImpl
- extends AbstractLogEnabled
- implements JMSConnectionManager, Serviceable, Configurable, Initializable, Startable, Disposable, ThreadSafe, JMSConnectionEventNotifier
JMSConnectionManager
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSConnectionManagerImpl
public JMSConnectionManagerImpl()
service
public void service(ServiceManager manager)
- Specified by:
service
in interface Serviceable
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
start
public void start()
throws Exception
- Specified by:
start
in interface Startable
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Startable
- Throws:
Exception
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
getConnection
public Connection getConnection(String name)
- Specified by:
getConnection
in interface JMSConnectionManager
getTopicConnection
public TopicConnection getTopicConnection(String name)
getQueueConnection
public QueueConnection getQueueConnection(String name)
addConnectionListener
public void addConnectionListener(String name,
JMSConnectionEventListener listener)
- Description copied from interface:
JMSConnectionEventNotifier
- Register a JMSConnectionEventListener.
- Specified by:
addConnectionListener
in interface JMSConnectionEventNotifier
- Parameters:
name
- the name of the JMS connection.listener
- the listener to register
removeConnectionListener
public void removeConnectionListener(String name,
JMSConnectionEventListener listener)
- Description copied from interface:
JMSConnectionEventNotifier
- Deregister a JMSConnectionEventListener.
- Specified by:
removeConnectionListener
in interface JMSConnectionEventNotifier
- Parameters:
name
- the name of the JMS connection.listener
- the listener to register.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.