I have a servlet which I will use as a message producer. to a JMS queue. I am using netbeans 6.9.1 and glassfish v3. I've configures the Queue destination on glassfish using the admin console..but I keep getting the following exception. JMS java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Name. what could I be doing wrong?

public class HelloWorld extends HttpServlet {
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
try {
Context context = new InitialContext();
ConnectionFactory connectionFactory = (ConnectionFactory)context.lookup("jms/GlassFishBookConnectionFactory");
Queue queue = (Queue)context.lookup("jms/GlassFishBookQueue");
javax.jms.Connection connection = connectionFactory.createConnection();
javax.jms.Session session = connection.createSession(false,Session.AUTO_ACKNOW LEDGE);
MessageProducer messageProducer = session.createProducer(queue);

TextMessage message = session.createTextMessage();
message.setText("Hello JMS");
System.out.println("It come from the servlet: " + message.getText());