IBM Bank Transformation Toolkit Javadoc

com.ibm.connector2.sna.lu62
Class Lu62Work

java.lang.Object
  extended by com.ibm.connector2.sna.lu62.Lu62Work
All Implemented Interfaces:
java.lang.Runnable, javax.resource.spi.work.Work

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

The Lu62Work 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 Lu62Work instance maps to a LU62Converstion and a combination of MessageEndPointFactory and the Lu62ActivationSpec instance.


Nested Class Summary
 class Lu62Work.Lu62ConversationEventHandler
          Eeven handler for Lu62 Conversation
 
Field Summary
(package private)  Lu62Conversation _lu62Conversation
           
(package private)  Semaphore attemptIntervalSemphore
           
(package private)  Lu62ActivationSpec lu62ActivSpec
           
(package private)  javax.resource.spi.endpoint.MessageEndpointFactory mef
           
 
Constructor Summary
Lu62Work(javax.resource.spi.endpoint.MessageEndpointFactory mef, javax.resource.spi.ActivationSpec activSpec)
          Constructor of Lu62Work
 
Method Summary
 java.lang.String getClassID()
          get the class instance ID
 Lu62Work.Lu62ConversationEventHandler getLu62ConversationEventHandler()
          Get the Lu62ConversationEventHandler
 Lu62XAResource getLu62XAResource()
          get the Lu62XAResource the LU62 work contains
(package private)  boolean isRunning()
           
 void release()
           
 void run()
          Run body of work to establish session for incoming message
(package private)  void setRunning(boolean running)
           
 void stopWork()
          stop the work and terminate the conversation
 
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

Lu62ActivationSpec lu62ActivSpec

_lu62Conversation

Lu62Conversation _lu62Conversation

attemptIntervalSemphore

Semaphore attemptIntervalSemphore
Constructor Detail

Lu62Work

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

Parameters:
mef -
activSpec -
Method Detail

isRunning

final boolean isRunning()

setRunning

final void setRunning(boolean running)

release

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

run

public void run()
Run body of work to establish session for incoming message

Specified by:
run in interface java.lang.Runnable

stopWork

public void stopWork()
stop the work and terminate the conversation


getLu62XAResource

public Lu62XAResource getLu62XAResource()
get the Lu62XAResource the LU62 work contains

Returns:
Lu62XAResource it contains

getLu62ConversationEventHandler

public Lu62Work.Lu62ConversationEventHandler getLu62ConversationEventHandler()
Get the Lu62ConversationEventHandler

Returns:

getClassID

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

Returns:

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008