biz.hammurapi.jms.adapter
Class FactoryConnection

java.lang.Object
  extended by biz.hammurapi.util.VisitableBase
      extended by biz.hammurapi.config.GenericContainer
          extended by biz.hammurapi.jms.adapter.JmsConnection
              extended by biz.hammurapi.jms.adapter.FactoryConnection
All Implemented Interfaces:
biz.hammurapi.config.Command, biz.hammurapi.config.Component, biz.hammurapi.config.Context, DestinationResolver, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer, biz.hammurapi.util.Attributable, biz.hammurapi.util.Visitable

public class FactoryConnection
extends JmsConnection
implements DestinationResolver


Field Summary
 
Fields inherited from class biz.hammurapi.jms.adapter.JmsConnection
definition
 
Constructor Summary
FactoryConnection(JmsAdapter jmsAdapter, biz.hammurapi.jms.adapter.definition.FactoryConnection definition)
           
 
Method Summary
protected  javax.jms.ConnectionFactory getConnectionFactory()
          Subclasses shall implement this method to either look up connection factory in JNDI or create using vendor-specific API's.
 javax.jms.Destination lookupDestination(java.lang.String name)
           
 void start()
           
 void stop()
           
 
Methods inherited from class biz.hammurapi.jms.adapter.JmsConnection
borrowSession, invalidateSession, returnSession
 
Methods inherited from class biz.hammurapi.config.GenericContainer
acceptChildren, addComponent, addMeasurement, execute, get, getAttribute, getComponentMap, getComponentNames, getComponents, getMeasurementConsumer, getOwner, removeAttribute, setAttribute, setMeasurementConsumer, setOwner
 
Methods inherited from class biz.hammurapi.util.VisitableBase
accept, object2visitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryConnection

public FactoryConnection(JmsAdapter jmsAdapter,
                         biz.hammurapi.jms.adapter.definition.FactoryConnection definition)
                  throws biz.hammurapi.config.ConfigurationException
Throws:
biz.hammurapi.config.ConfigurationException
Method Detail

start

public void start()
           throws biz.hammurapi.config.ConfigurationException
Specified by:
start in interface biz.hammurapi.config.Component
Overrides:
start in class JmsConnection
Throws:
biz.hammurapi.config.ConfigurationException

stop

public void stop()
          throws biz.hammurapi.config.ConfigurationException
Specified by:
stop in interface biz.hammurapi.config.Component
Overrides:
stop in class JmsConnection
Throws:
biz.hammurapi.config.ConfigurationException

lookupDestination

public javax.jms.Destination lookupDestination(java.lang.String name)
                                        throws biz.hammurapi.config.ConfigurationException
Specified by:
lookupDestination in interface DestinationResolver
Throws:
biz.hammurapi.config.ConfigurationException

getConnectionFactory

protected javax.jms.ConnectionFactory getConnectionFactory()
                                                    throws biz.hammurapi.config.ConfigurationException
Description copied from class: JmsConnection
Subclasses shall implement this method to either look up connection factory in JNDI or create using vendor-specific API's.

Specified by:
getConnectionFactory in class JmsConnection
Returns:
Throws:
biz.hammurapi.config.ConfigurationException


Copyright © 2006 Hammurapi Group. All Rights Reserved.