org.jencks
Class EndpointFactorySupport

java.lang.Object
  extended by 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 $

Field Summary
protected  javax.transaction.TransactionManager transactionManager
           
 
Constructor Summary
EndpointFactorySupport()
           
 
Method Summary
 javax.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource)
           
protected abstract  javax.jms.MessageListener createMessageListener()
           
 int getAcknowledgeMode()
           
 java.lang.String getAcknowledgeTpe()
           
 java.lang.String getName()
           
 javax.transaction.TransactionManager getTransactionManager()
           
 boolean isDeliveryTransacted(java.lang.reflect.Method method)
           
 void setAcknowledgeMode(int acknowledgeMode)
           
 void setAcknowledgeType(java.lang.String acknowledgeMode)
           
 void setName(java.lang.String name)
           
 void setTransactionManager(javax.transaction.TransactionManager transactionManager)
           
 java.lang.String toString()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionManager

protected javax.transaction.TransactionManager transactionManager
Constructor Detail

EndpointFactorySupport

public EndpointFactorySupport()
Method Detail

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.