properties.put(AQInitialContextFactory.DB_PASSWD, password);
properties.put(AQInitialContextFactory.DB_SCHEMA, schema);
properties.put(AQInitialContextFactory.DB_DRIVER, driver);
MockContextFactory.setAsInitial();
Context context = new InitialContext(properties);
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory)
context.lookup(AQInitialContextFactory.QUEUE_CONNECTION_FACTORY);
connection = queueConnectionFactory.createQueueConnection();
session = connection.createQueueSession(false,
QueueSession.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) context.lookup(qName);
messageProducer = session.createSender(queue);
messageConsumer = session.createReceiver(queue);