org.jencks
Class XAEndpoint

java.lang.Object
  extended by org.jencks.XAEndpoint
All Implemented Interfaces:
javax.jms.MessageListener, javax.resource.spi.endpoint.MessageEndpoint

public class XAEndpoint
extends java.lang.Object
implements javax.resource.spi.endpoint.MessageEndpoint, javax.jms.MessageListener

An XA based Endpoint which uses an XA transaction per message delivery.

Version:
$Revision: 155 $

Constructor Summary
XAEndpoint(javax.jms.MessageListener messageListener, javax.transaction.xa.XAResource xaResource, javax.transaction.TransactionManager transactionManager)
           
 
Method Summary
 void afterDelivery()
           
 void beforeDelivery(java.lang.reflect.Method method)
           
protected  void doRollback(java.lang.Exception e)
           
 void onMessage(javax.jms.Message message)
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAEndpoint

public XAEndpoint(javax.jms.MessageListener messageListener,
                  javax.transaction.xa.XAResource xaResource,
                  javax.transaction.TransactionManager transactionManager)
Method Detail

beforeDelivery

public void beforeDelivery(java.lang.reflect.Method method)
                    throws java.lang.NoSuchMethodException,
                           javax.resource.ResourceException
Specified by:
beforeDelivery in interface javax.resource.spi.endpoint.MessageEndpoint
Throws:
java.lang.NoSuchMethodException
javax.resource.ResourceException

afterDelivery

public void afterDelivery()
                   throws javax.resource.ResourceException
Specified by:
afterDelivery in interface javax.resource.spi.endpoint.MessageEndpoint
Throws:
javax.resource.ResourceException

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener

release

public void release()
Specified by:
release in interface javax.resource.spi.endpoint.MessageEndpoint

doRollback

protected void doRollback(java.lang.Exception e)
                   throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException


Copyright © 2010 LogicBlaze, Inc.. All Rights Reserved.