org.jencks
Class DefaultEndpointFactory
java.lang.Object
org.jencks.EndpointFactorySupport
org.jencks.DefaultEndpointFactory
- All Implemented Interfaces:
- javax.resource.spi.endpoint.MessageEndpointFactory, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
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: 32 $
Constructor Summary |
DefaultEndpointFactory()
|
DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String ref)
|
DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String ref,
javax.transaction.TransactionManager transactionManager,
java.lang.String name)
|
Methods inherited from class org.jencks.EndpointFactorySupport |
createEndpoint, getAcknowledgeMode, getAcknowledgeTpe, getName, getTransactionManager, isDeliveryTransacted, setAcknowledgeMode, setAcknowledgeType, setName, setTransactionManager, toString, wrapXAResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultEndpointFactory
public DefaultEndpointFactory()
DefaultEndpointFactory
public DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String ref)
DefaultEndpointFactory
public DefaultEndpointFactory(org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String ref,
javax.transaction.TransactionManager transactionManager,
java.lang.String name)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
getRef
public java.lang.String getRef()
setRef
public void setRef(java.lang.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 javax.jms.MessageListener createMessageListener()
throws javax.resource.spi.UnavailableException
- Specified by:
createMessageListener
in class EndpointFactorySupport
- Throws:
javax.resource.spi.UnavailableException
Copyright © 2010 LogicBlaze, Inc.. All Rights Reserved.