Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:54:27+00:00 2026-06-12T00:54:27+00:00

I have a GAE application that organises data using Namespaces. My question is –

  • 0

I have a GAE application that organises data using Namespaces. My question is – are Namespaces managed on a per-thread basis, or on a per-instance basis? If I enable threadsafe in the GAE configuration, is it possible that setting the namespace in one thread will affect other threads?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:54:29+00:00Added an answer on June 12, 2026 at 12:54 am

    It looks like namespaces are threadsafe on GAE/J.

    This has been tested by running simple servlet that does the following:

    • Sets the namespace to a query string parameter
    • Loops for 25 seconds, logging the namespace every 5 seconds, along with the thread ID
    • Call the servlet 3 times with three different namespaces, with a 10 second pause between each call

    With <threadsafe>true</threadsafe> set in appengine-web.xml all requests were handled by the same instance. This was verified by examining the number of running instances in the app engine console and by inspecting the logs for each request. Each log entry has an entry like: instance=00c61b117c8e9fd8aa8b02bff53de32a49b20e. Within the same instance, setting a namespace on a thread does not affect the namespace on other threads.

    To confirm that the threadsafe setting in the configuration was working, it was set to false and the same test run. As expected, each request spun up a new instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Objectify in my GAE application and I have multiple servlets that
I have an application that is using JDBC to manipulate its data. I'm looking
We have a GAE application that notifies users of sports goal changes and we
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
In my GAE application, I have several request handlers that return JSON-formated response. When
I have an application using vanilla OpenID support from GAE platform. I use user_id()
I have a GAE application that is mapped to a subdomain on a custom
I have a super-trivial application on GAE that I want to upgrade to HRD
I have a python GAE app that sends emails like in the example using
I have just noticed that when I have a running instance of my GAE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.