How to set targeted Modules for specific URL in AppEngine + Java


In Backends base app engine project(Java) i was doing

Queue queue = QueueFactory.getQueue("userou-queue"); TaskOptions objTskOptions = TaskOptions.Builder.withUrl("/backendsURL/") .countdownMillis(2000) .header("Host", BackendServiceFactory.getBackendService().getBackendAddress("backendname")) .method(Method.GET); queue.add(objTskOptions);

But now for Modules How can i target a specific Module for my specific URL.

Please help me.


From App Engine documentation:


The following code sample demonstrates how to create a push task addressed to instance 1 of a module named backend1, using the target directive:

</blockquote> import com.google.appengine.api.taskqueue.Queue; import com.google.appengine.api.taskqueue.QueueFactory; import static com.google.appengine.api.taskqueue.TaskOptions.Builder.*; import com.google.appengine.api.backends.*; // ... queue.add(withUrl("/path/to/my/worker").param("key", key).header("Host", BackendServiceFactory.getBackendService().getBackendAddress("backend1", 1));


Define the target parameter in the queue definition file: <a href="https://cloud.google.com/appengine/docs/java/config/queue#target" rel="nofollow">https://cloud.google.com/appengine/docs/java/config/queue#target</a>


  • Overwrite parent functions in child function.php WordPress
  • Binding ContextMenu Tag to Owner
  • sending email using “bcc” without “to” in java application
  • Spark doesn't read/write information from s3 (ResponseCode=400, ResponseMessage=Bad Request)
  • AdminLTE and AngularJS content wrapper wrong min-height
  • use images instead of text in webgrid asp mvc
  • Finding number of samples in a .wav header
  • css active on html inside php echo doesn't stay when click is left
  • Stretch a span across a td
  • Webpack-dev-server and isomorphic react-node application
  • Different Datacontext for Command and CommandParameter
  • angular2 http.post() to local json file
  • undefined reference error due to use of static variables [duplicate]
  • Cannot style mat-tab without ::ng-deep and !important
  • richtextbox to string
  • IllegalArgumentException: The servlets named [HelloWorlds] and [Hello] are both mapped to the url-pa
  • Android NFC read Tags issue. Activity starts each time on data received
  • Best HTML5 structure for a layout where the title/header is outside the article tag
  • openssl handshake failed
  • How to align an image side by side with a heading element?
  • How to resolve docker host names (/etc/hosts) in containers
  • Formatting a text in a table cell with PHPWord e.g. bold, font, size e.t.c
  • How to use animated gif in Firemonkey?
  • Creating a C++ function that calls other Lua function
  • incomplete type 'struct' error in C
  • saving file generated by TCPDF
  • How to view images from protected folder with php?
  • Textfile Structure (tables)
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • Sencha Touch 2.0 Controller refs attribute not working?
  • Play WS (2.2.1): post/put large request
  • Get data from AJAX - How to
  • Initializer list vs. initialization method
  • Spring security and special characters
  • Trying to switch camera back to front but getting exception
  • vba code to select only visible cells in specific column except heading
  • Free memory of cv::Mat loaded using FileStorage API
  • Angular 2 constructor injection vs direct access
  • need help with bizarre java.net.HttpURLConnection behavior
  • Programmatically clearing map cache