org.jencks
Class DefaultEndpointFactory
java.lang.Object
org.jencks.EndpointFactorySupport
org.jencks.DefaultEndpointFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, MessageEndpointFactory
- public class DefaultEndpointFactory
- extends EndpointFactorySupport
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
A factory of MessageEndpoint
instances, either using XA transactions,
Local (JMS) transactions or regular JMS message acknowledgements.
To use XA you must set the transactionManager property via the
EndpointFactorySupport.setTransactionManager(javax.transaction.TransactionManager)
method.
To use a local JMS transaction, then the XAResouce object passed in the EndpointFactorySupport.createEndpoint(XAResource)
call must implement LocalTransaction
.
- Version:
- $Revision: 1.2 $
DefaultEndpointFactory
public DefaultEndpointFactory()
DefaultEndpointFactory
public DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
String ref)
DefaultEndpointFactory
public DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
String ref,
TransactionManager transactionManager)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getRef
public String getRef()
setRef
public void setRef(String ref)
getBeanFactory
public org.springframework.beans.factory.BeanFactory getBeanFactory()
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
createMessageListener
protected MessageListener createMessageListener()
throws UnavailableException
- Specified by:
createMessageListener
in class EndpointFactorySupport
- Throws:
UnavailableException
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.