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 8759639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:51:24+00:00 2026-06-13T14:51:24+00:00

According to the Remote API docs for Java , the Remote API servlet needs

  • 0

According to the Remote API docs for Java, the Remote API servlet needs to be mapped to the /remote_api URL.

If I map the servlet to a different URL, would it be possible to use the Remote API classes in a client side script? I can’t find the javadoc for this, and the examples in the above doc don’t cover this case.

  • 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-13T14:51:25+00:00Added an answer on June 13, 2026 at 2:51 pm

    In order to enable Remote API in your application, you need to add the following in your web.xml file:

    <servlet>
        <display-name>Remote API Servlet</display-name>
        <servlet-name>RemoteApiServlet</servlet-name>
        <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>RemoteApiServlet</servlet-name>
        <url-pattern>/remote_api</url-pattern>
    </servlet-mapping>
    

    As you see, in the above code snippet the RemoteApiServlet is mapped to the /remote_api url. However, it is not mandatory to use this url. In the mapping, you could use your own url. For example, you could have:

    <servlet>
        <display-name>Remote API Servlet</display-name>
        <servlet-name>RemoteApiServlet</servlet-name>
        <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>RemoteApiServlet</servlet-name>
        <url-pattern>/myurl</url-pattern>
    </servlet-mapping>
    

    Update: Code for the client

    In the client, based on the documentation provided at Configuring Remote API on a Standalone Client, you can set the custom path by modifying the RemoteApiOptions. For example:

    RemoteApiOptions options = new RemoteApiOptions()
        .server("your_app_id.appspot.com", 443)
        .credentials(username, password)
        .remoteApiPath(yourpath);
    

    Hope this helps!

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

Sidebar

Related Questions

According to the GAE docs on the Multitenancy API : Multitenancy is the name
According to the user guide , I should be able to use <url></url> in
I am building a app with many different parts which access remote api calls
I'm getting this error: The remote certificate is invalid according to the validation procedure.
According to the Thinking Sphinx docs ... Turning on delta indexing does not remove
I have a scraper, which queries different websites. Some of them varyingly use Content-Encoding.
According to chrome extensions API cross-origin calls using XMLHttpRequest object should be allowed if
According to GitGuys Remote Tracking Branches should not be modified by users (don’t set
According to a couple of different postings here on SO storing images in the
When I use Eclipse Remote System Explorer or Aptana plugin to upload files, the

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.