IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.samples.business.sna.lu0
Class DummyLu0Work

java.lang.Object
  extended by com.ibm.btt.samples.business.sna.lu0.DummyLu0Work
All Implemented Interfaces:
java.lang.Runnable, javax.resource.spi.work.Work

public class DummyLu0Work
extends java.lang.Object
implements javax.resource.spi.work.Work

The DummyLu0Work class is the main class that interacts with the underlying LU62Converstion class and perform message delivery. It makes use of the work management feature of JCA1.5 that acts as thread listening for the incoming message. It also is responsible for delivering the incoming message to MDB message endpoint. Each DummyLu0Work instance maps to a LU62Converstion and a combination of MessageEndPointFactory and the DummyLu0ActivationSpec instance.


Nested Class Summary
 class DummyLu0Work.DummyLu0ConversationEventHandler
          Eeven handler for DummyLu0 Conversation
 
Field Summary
(package private)  DummyLu0ActivationSpec lu62ActivSpec
           
(package private)  javax.resource.spi.endpoint.MessageEndpointFactory mef
           
 
Constructor Summary
DummyLu0Work(javax.resource.spi.endpoint.MessageEndpointFactory mef, javax.resource.spi.ActivationSpec activSpec)
          Constructor of DummyLu0Work
 
Method Summary
 java.lang.String getClassID()
          get the class instance ID
 DummyLu0Work.DummyLu0ConversationEventHandler getDummyLu0ConversationEventHandler()
          Get the DummyLu0ConversationEventHandler
 DummyLu0XAResource getDummyLu0XAResource()
          get the DummyLu0XAResource the LU62 work contains
 void release()
           
 void releaseEndpoint(javax.resource.spi.endpoint.MessageEndpoint endPoint, boolean transacted)
          Completes the Message delivery and release the MessageEndpoint.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mef

javax.resource.spi.endpoint.MessageEndpointFactory mef

lu62ActivSpec

DummyLu0ActivationSpec lu62ActivSpec
Constructor Detail

DummyLu0Work

public DummyLu0Work(javax.resource.spi.endpoint.MessageEndpointFactory mef,
                    javax.resource.spi.ActivationSpec activSpec)
Constructor of DummyLu0Work

Parameters:
mef -
activSpec -
Method Detail

releaseEndpoint

public void releaseEndpoint(javax.resource.spi.endpoint.MessageEndpoint endPoint,
                            boolean transacted)
Completes the Message delivery and release the MessageEndpoint.


release

public void release()
Specified by:
release in interface javax.resource.spi.work.Work

getDummyLu0XAResource

public DummyLu0XAResource getDummyLu0XAResource()
get the DummyLu0XAResource the LU62 work contains

Returns:
DummyLu0XAResource it contains

getDummyLu0ConversationEventHandler

public DummyLu0Work.DummyLu0ConversationEventHandler getDummyLu0ConversationEventHandler()
Get the DummyLu0ConversationEventHandler

Returns:

getClassID

public java.lang.String getClassID()
get the class instance ID

Returns:

run

public void run()
Specified by:
run in interface java.lang.Runnable

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008