Is there some sort of limitation of the remote API that prevents XG
transactions from working?
I've tried to create the simplest possible scenario (remote api is installed):
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Transaction txn = ds.beginTransaction(TransactionOptions.Builder.withXG(true));
Key eventKey1 = // create key in EG 1
Key eventKey2 = // create key in EG 2
Entity event1 = ds.get(txn, eventKey1);
Entity event2 = ds.get(txn, eventKey2);
txn.commit();
The commit() fails with "can't operate on multiple entity groups in a
single transaction":
[java] Caused by: java.lang.IllegalArgumentException: can't
operate on multiple entity groups in a single transaction.
[java] at
com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:36)
[java] at
com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:76)
[java] at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:106)
[java] at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90)
[java] at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90)
[java] at
com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:72)
[java] at
com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:33)
[java] at
com.google.appengine.api.datastore.TransactionImpl.commit(TransactionImpl.java:105)
This happens while connecting to a HRD app and XG transactions work
great there. I searched through the remote api documentation but
there's nothing that mentions special behavior WRT XG transactions.
Am I missing something incredibly obvious?
Thanks in advance,
Jeff
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.