My first question on task queues...

I'd like to design my application to use a named (configured) queue if
it exists, but to drop back to using the default queue if the named
queue isn't configured. I'd like to do something like this:

    Queue q = QueueFactory.getQueue( "myQueue" );
    if ( q == null ) {
        q = QueueFactory.getDefaultQueue();
    }

But, the documentation for QueueFactory.getQueue( String ) implies
that this isn't how it works:

    "Attempting to use a non-existing queue name may result in errors
at the point of use of the Queue object and not when calling
getQueue(String)."

Is there a way to simply and reliably determine whether a given queue
name has been configured?

Vince

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to