org.hibersap.examples.jee
Class SapFlightServiceBean

java.lang.Object
  extended by org.hibersap.examples.jee.SapFlightServiceBean
All Implemented Interfaces:
SapFlightService

public class SapFlightServiceBean
extends Object
implements SapFlightService


Field Summary
 
Fields inherited from interface org.hibersap.examples.jee.SapFlightService
JNDI_NAME, LOCAL_JNDI_NAME
 
Constructor Summary
SapFlightServiceBean()
           
 
Method Summary
 void init()
           
 FlightDetailBapi showFlightDetail(Date date)
          Example using Container Managed Transaction (CMT): The container cares about transaction handling (see @TransactionAttribute annotation).
 FlightListBapi showFlightList()
          Example using Bean Managed Transaction (BMT): No Transaction from the Container is propagated (see @TransactionAttribute annotation), so we do programmatic transaction handling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SapFlightServiceBean

public SapFlightServiceBean()
Method Detail

init

@PostConstruct
public void init()
Specified by:
init in interface SapFlightService

showFlightDetail

public FlightDetailBapi showFlightDetail(Date date)
Example using Container Managed Transaction (CMT): The container cares about transaction handling (see @TransactionAttribute annotation).

Specified by:
showFlightDetail in interface SapFlightService

showFlightList

public FlightListBapi showFlightList()
Example using Bean Managed Transaction (BMT): No Transaction from the Container is propagated (see @TransactionAttribute annotation), so we do programmatic transaction handling.

Specified by:
showFlightList in interface SapFlightService


Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.