The logic is something like this.
int retry = 3;
while( retry >= 0 )
{
Transaction txn = datastoreService.beginTransaction();
try
{
// persistence code here
}
catch (EntityNotFoundException e)
{
retry--;
}
catch (ConcurrentModificationException e)
{
if (retry == 0)
{
throw e;
}
retry--;
}
finally
{
if (txn.isActive())
{
txn.rollback();
}
}
}
I do not think app engine can be configured. However, at application
level you can execute transaction with a configurable number of
retrys.
J.Ganesan
www.DataStoreGwt.com
On Aug 31, 8:35 am, Luke <[email protected]> wrote:
> hi,
> when we insert data into datastore, what is the retry logic that
> used in low level in case datastore have problem? Is there any option
> we can configure at low level number of retry ?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.