org.jencks
Class LocalTransactionEndpoint

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

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

Performs a local transaction while processing the message

Version:
$Revision: 5 $

Constructor Summary
LocalTransactionEndpoint(javax.jms.MessageListener messageListener, javax.resource.spi.LocalTransaction localTransaction)
           
 
Method Summary
 void afterDelivery()
           
 void beforeDelivery(java.lang.reflect.Method method)
           
protected  javax.resource.spi.LocalTransaction getLocalTransaction()
          A getter which will return the current local transaction or throw a new exception if this endpoint has already been released.
 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

LocalTransactionEndpoint

public LocalTransactionEndpoint(javax.jms.MessageListener messageListener,
                                javax.resource.spi.LocalTransaction localTransaction)
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

release

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

onMessage

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

getLocalTransaction

protected javax.resource.spi.LocalTransaction getLocalTransaction()
                                                           throws javax.resource.ResourceException
A getter which will return the current local transaction or throw a new exception if this endpoint has already been released.

Throws:
javax.resource.ResourceException


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