Questions Re: App Engine bundled services for Java 11

131 views
Skip to first unread message

Martin Levett

unread,
Feb 22, 2022, 5:55:53 AM2/22/22
to Google App Engine
Not sure if this is the best place to ask but can't find any dedicated preview google group for the 2nd-gen bundled services. It seems like this could save us a lot of effort to get up to Java 11 but I've got a couple of questions:

- Does this allow enqueueing tasks within a datastore transaction? I can see from the Javadoc that the Queue.add(Transaction txn, TaskOptions taskOptions) method is still there but not sure how the bundled services work internally. i.e. are they proxying to the new services or connecting to the legacy ones.

- Is there any guidance on when this might be GA?

Thanks
Martin

Matt Larkin

unread,
Feb 22, 2022, 2:09:31 PM2/22/22
to Google App Engine
Hi Martin,
>- Does this allow enqueueing tasks within a datastore transaction? I can see from the Javadoc that the Queue.add(Transaction txn, TaskOptions taskOptions) method is still there but not sure how the bundled services work internally. i.e. are they proxying to the new services or connecting to the legacy ones.
Yes, the bundled services in 2nd-gen have the same behavior as in 1st-gen, including transactional tasks.  These services actually use the exact same backends/services that they always have, the work we are doing now just enables the use of these backends by certain 2nd-gen runtimes (Java/Python/Go).

>Is there any guidance on when this might be GA?
We are targeting GA, for Java/Python/Go runtimes, at the end of Q1 2022 (~end of March 2022)

Best,
Matt

Ludovic Champenois

unread,
Feb 22, 2022, 2:46:08 PM2/22/22
to google-a...@googlegroups.com

Hi,

We have added Java 11 bundled services samples instruction under https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/appengine-java11-bundled-services, with 1 full sample available (Datastore).

Try the instructions on taskqueues-deferred, pull and push samples for Java8, it should be the same user code.

If the Javadoc is still there, it should work.

Let us know how it goes!

Cheers,

Ludo

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7af621c5-70ef-4fb6-b299-5c8cb6a4e9cbn%40googlegroups.com.

Martin Levett

unread,
Feb 24, 2022, 4:09:10 AM2/24/22
to Google App Engine
Great thanks - very useful.

A related question - I'm trying to upgrade an old app to Java 11 using the new bundled services but having an issue with Users API. The app is configured in web.xml so that a specific path (i.e. /system) requires admin role. In the past attempting to access this would redirect to google login but in Java 11 I'm getting "Error 401: invalid_client The OAuth client was not found". Not sure if this expected or just a configuration issue.

Martin Levett

unread,
Feb 24, 2022, 6:03:31 PM2/24/22
to Google App Engine
Actually nevermind - the Users API bit is working now. It was due to some missing configuration values on the application side.
Reply all
Reply to author
Forward
0 new messages