public interface Transaction
For more details and a code example for rollback in a JMP application, see the topic "Rolling back IMS changes in a JMP application" in the IMS Application Programming guide documentation.
For more details and a code sample for JBP symbolic checkpoint and restart, see the topic "Developing JBP applications with the IMS Java dependent region resource adapter" in the IMS Application Programming guide documentation.
| Modifier and Type | Method and Description |
|---|---|
void |
abend()
Abnormally terminates the application by making a "ROLL" call.
|
void |
checkpoint()
Issues a checkpoint call for a Java batch message processing (JBP) application that uses
symbolic checkpoints.
|
void |
checkpoint(SaveArea saveArea)
Issues a checkpoint call for a Java batch message processing (JBP) application that uses
symbolic checkpoints.
|
void |
commit()
Commits an IMS transaction
|
AIB |
getAIB()
Returns the
AIB instance associated with the most recent DL/I call. |
SaveArea |
getSaveArea()
Returns the
SaveArea object that is used during CHKP or XRST calls
to checkpoint the application data objects. |
SaveArea |
restart()
Issues a restart call for a Java batch message processing (JBP) application that
uses symbolic checkpoints.
|
void |
rollback()
Rolls back an IMS transaction
|
void commit()
throws DLIException
com.ibm.ims.dli.tm.TMException - if the operation failsDLIExceptionvoid rollback()
throws DLIException
com.ibm.ims.dli.tm.TMException - if the operation failsDLIExceptionvoid checkpoint()
throws DLIException
This version of the checkpoint method does not take any parameters. Use this method when your application needs to take checkpoints without having to specify a checkpoint ID and without having to save any application state information.
If this method is used to take checkpoints, when restarting, use the 4-character constant "LAST" as
the checkpoint ID for restart.
Before taking any checkpoints, you must issue an initial restart() call
to notify IMS that your application intends to use symbolic checkpoints.
If your application needs to save application objects, use the other form of the checkpoint method: @link {Transaction#checkpoint(SaveArea)}.
IMSException - if the checkpoint ID is invalid, or if an IMS call
returns a non-blank status code.DLIExceptionvoid checkpoint(SaveArea saveArea) throws DLIException
Use this method when the application needs to take checkpoints without having to specify a checkpoint ID but has to store application state information.
If this method is used to take checkpoints, when restarting, use the 4-character constant "LAST" as
the checkpoint ID for restart.
Before taking any checkpoints, you must issue an initial restart() call
to notify IMS that your application intends to use symbolic checkpoints.
saveArea - the SaveArea instance to store application state information.IMSException - if the checkpoint ID is invalid, or if an IMS call
returns a non-blank status code.DLIExceptionSaveArea restart() throws DLIException
Use this method in one of the following cases:
SaveArea instance with the application state information to be restored.IMSException - if a non-blank status code is returned from the XRST call.DLIExceptionAIB getAIB()
AIB instance associated with the most recent DL/I call.
The AIB contains all the data attributes of the IMS application interface block.AIB instance associated with the most recent DL/I call.SaveArea getSaveArea()
SaveArea object that is used during CHKP or XRST calls
to checkpoint the application data objects.SaveArea instance that stores the application state.void abend()
(c) Copyright IBM Corporation 2008, 2017.