Hi everyone!
I'm playing with GAE hooks and trying to follow Nick's blog post
(http://goo.gl/TB682). But apparently it's somewhat outdated because
it doesn't have implementation of `makeAsyncCall` which exists in my
GAE SDK 1.6.1.
Here is snippet of my code
public class MultiTenantHook implements Delegate
{
@Override
public Future<byte[]> makeAsyncCall(final Environment env,
final String pkgName, final String method, final byte[] request,
ApiProxy.ApiConfig config)
{
Callable<byte[]> callable = new Callable<byte[]>()
{
@Override
public byte[] call() throws Exception
{
return makeSyncCall(env, pkgName, method,
request);
}
};
FutureTask<byte[]> task = new
FutureTask<byte[]>(callable);
return task;
}
}
This method is being called but returned `Future<>` is never used by
GAE. `call()` method of inner class is never executed. Therefore it
doesn't work.
Do you know how to make it work?
Thank you!
--
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.