org.jboss.txbridge.ba.execute
Class EJBExecution

java.lang.Object
  extended by org.jboss.txbridge.ba.execute.EJBExecution
All Implemented Interfaces:
Executable

public class EJBExecution
extends java.lang.Object
implements Executable

This class provides implementation of the EJB execution. It uses the Service Locator component to get reference to the required EJB.

Version:
0.1
Author:
Maciej P. Machulak (mmachulak@redhat.com)

Field Summary
private static org.apache.log4j.Logger log
           
 
Constructor Summary
EJBExecution()
           
 
Method Summary
 void invokeService(TaskDescription taskDesc, MethodDescription md, java.lang.Object[] arguments, java.lang.Class[] argumentTypes)
          This method invokes a service that is described by the service description with given arguments and argument types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Constructor Detail

EJBExecution

public EJBExecution()
Method Detail

invokeService

public void invokeService(TaskDescription taskDesc,
                          MethodDescription md,
                          java.lang.Object[] arguments,
                          java.lang.Class[] argumentTypes)
                   throws ActionExecutionException
This method invokes a service that is described by the service description with given arguments and argument types.

Specified by:
invokeService in interface Executable
Parameters:
taskDesc - describes the task (needed to inject the proper participant).
md - describes the service.
arguments - is the list of arguments.
argumentTypes - is the list of argument types.
Throws:
ActionExecutionException - if invoking completion or compensation action was not successful.