6

Is there a way to pass multiple parameters in a Queue in google-app-engine? I use the code below

Queue queue = QueueFactory.getQueue("sms-queue");
queue.add(TaskOptions.Builder.url("/SQ").param("id",pId));

in my servlet this id is retrievd as a query string.

long pID = Long.parseLong(req.getParameter("id"));      

I need to pass 6 parameters.

1 Answer 1

11

Have you tried doing this:

queue.add(TaskOptions.Builder
    .url("/SQ")
    .param("p1Name", p1Value)
    .param("p2Name", p2Value)
    .param("p3Name", p3Value)
    // etc
);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.