|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoServerTIDHandler
This interface defines methods to handle transactions being received from an SAP system. The applications providing support for transactional scenarios based on tRFC and qRFC communication have to provide a custom implementation for this interface. The instance implementing this interface has to be set on the server.
JCoServer.setTIDHandler(JCoServerTIDHandler)
Method Summary | |
---|---|
boolean |
checkTID(JCoServerContext serverCtx,
java.lang.String tid)
This function will be invoked when a transactional RFC is being called from a SAP system. |
void |
commit(JCoServerContext serverCtx,
java.lang.String tid)
This function will be called after all RFC functions belonging to a certain transaction have been successfully completed. |
void |
confirmTID(JCoServerContext serverCtx,
java.lang.String tid)
This function will be called after the local transaction has been completed. |
void |
rollback(JCoServerContext serverCtx,
java.lang.String tid)
This function will be called if an error has occurred in one of the RFC functions belonging to a certain transaction. |
Method Detail |
---|
boolean checkTID(JCoServerContext serverCtx, java.lang.String tid)
true
.
The method has to return false
if the a transaction with this ID has already
been processed successfully (i.e. was committed). It should throw an exception if anything goes wrong.
The transaction processing will be aborted thereafter. In case the transaction with the passed tid
is still in execution, the method should wait internally in order to return an appropriate value.
tid
- the transaction ID
true
if the ID is valid and not in use, false
otherwisevoid confirmTID(JCoServerContext serverCtx, java.lang.String tid)
tid
- the transaction IDvoid commit(JCoServerContext serverCtx, java.lang.String tid)
tid
- the transaction IDvoid rollback(JCoServerContext serverCtx, java.lang.String tid)
tid
- the transaction ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |