Hey Snahasish, The Remote API is useful in some ways, and other solutions would be useful in other ways. You can use the remote API to connect to your instance and execute code in that context. If you use that code to call the Mail API, that's one way to call the Mail API.
If you're still confused about how to use the Remote API, I suggest re-reading the documentation <https://cloud.google.com/appengine/docs/java/tools/remoteapi?hl=en#configuring_remote_api_on_a_standalone_client> which will clearly explain the steps to get it set up. To answer your main question specifically, the servlet configuration you provided should be in web.xml of the deployed application. Your local (tomcat) application should connect to the remote app's remote API. In the docs, the section "Configuring Remote API on the Server" describes what should happen on your App Engine app, and the other two sections describe how to connect from a standalone client (your tomcat server) or another App Engine context. Best wishes, Nick On Tuesday, September 15, 2015 at 6:09:00 AM UTC-4, snahasis ghosh wrote: > > > Hi Nick > > I have few questing. Can you please clearly. > > 1. Is Remote API using is the correct approach to fulfill my requirement ? > > 2. As per https://cloud.google.com/appengine/docs/java/tools/remoteapi > > > <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> > > where this servlet will be defined ? > 1. Is it in my java application which is deployed in Tomcat (not in app > engine) or > 2. within web.xml of app engine application. (this application is deployed in > App Engine.) ? > 3. or in both place. > > > Thanks > > Snahasish > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c87e278a-72c0-4ff1-9eaf-33297dec4812%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
