The preconfigured URL mapping for the DeferredTaskServlet may be used for any queue. There is no need to specify your own URL mapping that I can see.
On Apr 22, 8:05 pm, Marcel Overdijk <marceloverd...@gmail.com> wrote: > I did some quick testing and I found out: > > QueueFactory.getQueue("email- > queue").add(TaskOptions.Builder.withPayload(new > EmailTask(email)).url("/email-queue")); > > that with above I can enqueue adeferredtaskin the another queue > (not default). > I had to to use the url("/email-queue") setting otherwise it was > pushed to the default __deferred__ handler. > > I just configured the > com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it > to /email-queue > > When I try System.out.println("queue name: " + > DeferredTaskContext.getCurrentRequest().getHeader("X-AppEngine- > QueueName")); > I see the correct e-mail-queue being printed thus so far everything > seems to work. > > I also configured <task-retry-limit>5</task-retry-limit> for this > queue but this does not seem to work. > > So the setup is working but the DeferredTask / DeferredTaskServlet do > not seem to look into the settings configured in queue.xml > > Can somebody confirm this? Do you have more information on how you determined that this is not working? > > On Apr 22, 11:13 am, Marcel Overdijk <marceloverd...@gmail.com> wrote: > > > > > > > > > Maybe use additional mappings to > > com.google.apphosting.utils.servlet.DeferredTaskServlet > > The documentation onDeferredTasks is a little bit sparse... Any > > pointers appreciated. > > > Basically what I would like to do is have multiple queue defined with > > different throttling settings. > > And use DeferredTask to send them to one of the queues depending on > > the my needs. > > > I would have no problem with configuring additional servlet mappings > > using com.google.apphosting.utils.servlet.DeferredTaskServlet > > > On Apr 22, 8:58 am, Marcel Overdijk <marceloverd...@gmail.com> wrote: > > > > Is it possible to useDeferredTasks outside the default queue? > > > > I would like to setup multiple queues with different config settings. > > > > For theDeferredTasks a specific handler is setup at /_ah/queue/ > > > __deferred__ so I wonder how that would work with multiple queues.... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.