I'm trying to use a named TaskQueue in my app as follows, but am
unable to use a named-queue.  Here's my code:

Queue queue = QueueFactory.getQueue("named-queue");
TaskOptions to = TaskOptions.Builder.param("param", "paramValue");
to = to.url("/queues/named-queue-runner");
queue.add(to);

Upon calling "queue.add(to)", the app throws the following Exception:
"java.lang.IllegalStateException: The specified queue is unknown : "

My queues.xml is configured as follows:

<?xml version="1.0" encoding="UTF-8"?>
<queue-entries>
        <queue>
                <name>named-queue</name>
                <rate>5/s</rate>
        </queue>
</queue-entries>

In the above java code, if I just use the default Queue (i.e.,
QueueFactory.getDefaultQueue()) things work fine.

Any ideas?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to