org.apache.cocoon.components.jms
Class JMSConnectionManagerImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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.


Field Summary
 
Fields inherited from interface org.apache.cocoon.components.jms.JMSConnectionManager
ROLE
 
Constructor Summary
JMSConnectionManagerImpl()
           
 
Method Summary
 void addConnectionListener(String name, JMSConnectionEventListener listener)
          Register a JMSConnectionEventListener.
 void configure(Configuration configuration)
           
 void dispose()
           
 Connection getConnection(String name)
           
 QueueConnection getQueueConnection(String name)
           
 TopicConnection getTopicConnection(String name)
           
 void initialize()
           
 void removeConnectionListener(String name, JMSConnectionEventListener listener)
          Deregister a JMSConnectionEventListener.
 void service(ServiceManager manager)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSConnectionManagerImpl

public JMSConnectionManagerImpl()
Method Detail

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.