com.sap.mw.jco.jra

Interface TransactionalMessageListener

All Superinterfaces:
MessageListener

public interface TransactionalMessageListener
extends MessageListener

A MessageDrivenBean implementing this interface is able to receive requests from R/3 via bgRFC and tRFC. The handling or the transactional IDs is made by the infrastucture


Method Summary
 void onCommit()
          This API is called when a call from R/3 has been dispatched successfully.
 void onMessage(MappedRecord msg, Properties info)
          This method is called by EJB container when an R/3 calls asynchronously to the registered Resource Adapter server.
 void onRollback()
          This API is called when a call from R/3 has been failed.
 

Method Detail

onMessage

void onMessage(MappedRecord msg,
               Properties info)
               throws ResourceWarning
This method is called by EJB container when an R/3 calls asynchronously to the registered Resource Adapter server.

Parameters:
msg - message sent over tRFC from R/3
info - contains caller identification, like UserName, SystemID, etc.
Throws:
ResourceWarning - application exception corresponding an ABAP exception defined in the function module interface

onCommit

void onCommit()
This API is called when a call from R/3 has been dispatched successfully.


onRollback

void onRollback()
This API is called when a call from R/3 has been failed.

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] ENGFACADE [sap.com] tc/bl/jra/api api BC-JAS


Copyright 2011 SAP AG Complete Copyright Notice