biz.hammurapi.jms.adapter
Class JndiConnection

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.JndiConnection
All Implemented Interfaces:
biz.hammurapi.config.Command, biz.hammurapi.config.Component, biz.hammurapi.config.Context, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer, biz.hammurapi.util.Attributable, biz.hammurapi.util.Visitable

public class JndiConnection
extends JmsConnection


Field Summary
 
Fields inherited from class biz.hammurapi.jms.adapter.JmsConnection
definition
 
Constructor Summary
JndiConnection(JmsAdapter jmsAdapter, biz.hammurapi.jms.adapter.definition.JndiConnection 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.
 
Methods inherited from class biz.hammurapi.jms.adapter.JmsConnection
borrowSession, invalidateSession, returnSession, start, stop
 
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

JndiConnection

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

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.