07-02-2013 02:36 PM
…/…
TransactionService transactionService = serviceRegistry.getTransactionService();
trx = serviceRegistry.getTransactionService().getUserTransaction();
try
{
trx.begin();
if (debug) System.out.println("-transaction commence");
bp=baseParam.traitParam(req);
if (debug) System.out.println("-transaction finit");
trx.commit();
}
catch(Throwable e)
{
try
{
trx.rollback();
System.out.println("rollback sur baseParam.traitParam(req))");
System.out.println("EXCEPTION : "+e);
e.printStackTrace();
}
catch(Throwable ee)
{
System.out.println("erreur de rollback sur baseParam.traitParam(req))");
System.out.println("EXCEPTION : "+ee);
ee.printStackTrace();
}
bp=true;
}
…/…
07-03-2013 06:27 AM
07-03-2013 11:08 AM
07-22-2013 02:30 PM
transactionService = (TransactionService)serviceRegistry.getTransactionService();
RetryingTransactionCallback<Object> cr2 = new RetryingTransactionCallback<Object>()
{ public Object execute() throws Exception
{
if (debug) System.out.println("-la transaction commence");
boolean bp=creer(nodeRef, fileName);
if (debug) System.out.println("-la transaction finit");
return bp;
}
};
bp=(Boolean) transactionService.getRetryingTransactionHelper().doInTransaction(cr2);
if (bp)
{
System.out.println("!!!!!!!!!!!! incident sur création du document "
+ fileName + " - node="+nodeRef
+" - on continue la route\n");
}
else
{
if (debug) System.out.println("$$$$$$$$"
+ "\n$$$$$$$$ création traitée avec succès - on continue la procédure"
+ "\n$$$$$$$$\n");
}
07-23-2013 03:47 AM
07-23-2013 05:43 AM
boolean bp=false;
…
transactionService = (TransactionService)serviceRegistry.getTransactionService();
RetryingTransactionCallback<Object> cr2 = new RetryingTransactionCallback<Object>()
{ public Object execute() throws Exception
{
if (debug) System.out.println("-la transaction commence");
boolean bp=creer(nodeRef, fileName);
if (debug) System.out.println("-la transaction finit");
return bp;
}
};
bp=(Boolean) transactionService.getRetryingTransactionHelper().doInTransaction(cr2);
if (bp)
{
System.out.println("!!!!!!!!!!!! incident sur création du document "
+ fileName + " - node="+nodeRef
+" - on continue la route\n");
}
else
{
if (debug) System.out.println("$$$$$$$$"
+ "\n$$$$$$$$ création traitée avec succès - on continue la procédure"
+ "\n$$$$$$$$\n");
}
09-13-2013 01:41 PM
10-12-2013 08:36 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.