|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.websphere.samples.jtaextensionssamples.transactiontrackerwar.TransactionTracker
public class TransactionTracker
The TransactionTracker servlet provides a demonstration of WebSphere's Extended JTA Transaction functionality.
Constructor Summary | |
---|---|
TransactionTracker()
|
Method Summary | |
---|---|
void |
afterCompletion(int localId,
byte[] globalId,
boolean committed)
This method is invoked after the completion of a transaction. |
void |
beforeCompletion(int localId,
byte[] globalId)
This method is invoked before the completion of a transaction. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a get request to the TransactionTracker. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Act upon a post request to the TransactionTracker. |
void |
init()
Initialize the TransactionTracker servlet. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionTracker()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void beforeCompletion(int localId, byte[] globalId)
beforeCompletion
in interface com.ibm.websphere.jtaextensions.SynchronizationCallback
public void afterCompletion(int localId, byte[] globalId, boolean committed)
afterCompletion
in interface com.ibm.websphere.jtaextensions.SynchronizationCallback
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |