org.jencks
Class EndpointFactorySupport
java.lang.Object
org.jencks.EndpointFactorySupport
- All Implemented Interfaces:
- javax.resource.spi.endpoint.MessageEndpointFactory
- Direct Known Subclasses:
- DefaultEndpointFactory, SingletonEndpointFactory
public abstract class EndpointFactorySupport
- extends java.lang.Object
- implements javax.resource.spi.endpoint.MessageEndpointFactory
- Version:
- $Revision: 65 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
transactionManager
protected javax.transaction.TransactionManager transactionManager
EndpointFactorySupport
public EndpointFactorySupport()
getAcknowledgeMode
public int getAcknowledgeMode()
setAcknowledgeMode
public void setAcknowledgeMode(int acknowledgeMode)
getAcknowledgeTpe
public java.lang.String getAcknowledgeTpe()
setAcknowledgeType
public void setAcknowledgeType(java.lang.String acknowledgeMode)
createEndpoint
public javax.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource)
throws javax.resource.spi.UnavailableException
- Specified by:
createEndpoint
in interface javax.resource.spi.endpoint.MessageEndpointFactory
- Throws:
javax.resource.spi.UnavailableException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isDeliveryTransacted
public boolean isDeliveryTransacted(java.lang.reflect.Method method)
throws java.lang.NoSuchMethodException
- Specified by:
isDeliveryTransacted
in interface javax.resource.spi.endpoint.MessageEndpointFactory
- Throws:
java.lang.NoSuchMethodException
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()
setTransactionManager
public void setTransactionManager(javax.transaction.TransactionManager transactionManager)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
createMessageListener
protected abstract javax.jms.MessageListener createMessageListener()
throws javax.resource.spi.UnavailableException
- Throws:
javax.resource.spi.UnavailableException
wrapXAResource
protected javax.transaction.xa.XAResource wrapXAResource(javax.transaction.xa.XAResource xaResource)
XAResource
instances must be named to support recovery, so either pass
NamedXAResource
instances through or wrap with the Spring name.
- Parameters:
xaResource
-
- Returns:
- the wrapped XAResource instance
Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.