org.defne.ejb.service
Class ServiceExecutor

java.lang.Object
  extended by org.defne.ejb.service.ServiceExecutor
All Implemented Interfaces:
IServiceExecutor

public class ServiceExecutor
extends Object
implements IServiceExecutor

Imlementation of the IServiceExecutor.

This stateless ejb is responsible for executing the service method.

Version:
$Rev$ $Date$
Author:
gurkanerdogdu

Field Summary
 
Fields inherited from interface org.defne.service.executor.IServiceExecutor
SERVICE_EXECUTOR_JNDI_INIT_PARAMETER
 
Constructor Summary
ServiceExecutor()
          Default constructor.
 
Method Summary
 Message executeWithNewTransaction(Message inputBag)
          Execute with new transaction.
 Message executeWithoutTransaction(Message inputBag)
          Execute without transaction.
 Message executeWithTransaction(Message inputBag)
          Execute with transaction.
protected  void postConstruct()
          Setup the service scanner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceExecutor

public ServiceExecutor()
Default constructor.

Method Detail

executeWithTransaction

public Message executeWithTransaction(Message inputBag)
                               throws DefneException
Execute with transaction.

Specified by:
executeWithTransaction in interface IServiceExecutor
Parameters:
inputBag - the input bag
Returns:
the service bag
Throws:
DefneException - the green exception

executeWithNewTransaction

public Message executeWithNewTransaction(Message inputBag)
                                  throws DefneException
Execute with new transaction.

Specified by:
executeWithNewTransaction in interface IServiceExecutor
Parameters:
inputBag - the input bag
Returns:
the service bag
Throws:
DefneException - the green exception

executeWithoutTransaction

public Message executeWithoutTransaction(Message inputBag)
                                  throws DefneException
Execute without transaction.

Specified by:
executeWithoutTransaction in interface IServiceExecutor
Parameters:
inputBag - the input bag
Returns:
the service bag
Throws:
DefneException - the green exception

postConstruct

@PostConstruct
protected void postConstruct()
Setup the service scanner.



Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.