createQueue(session, schema, name, payloadType, multiconsumer);
}
public static void createQueue(AQjmsSession session, String schema, String name, String payloadType, boolean multiconsumer) throws AQException, JMSException {
AQQueueTable table = session.createQueueTable (schema, "queue_" + name, new AQQueueTableProperty(payloadType));
AQQueueProperty prop = new AQQueueProperty();
// TODO The setMultiConsumer() is not yet available in this version of the
// aqapi.jar library.
//if (multiconsumer) prop.setMultiConsumer(true);
AQQueue queue = table.createQueue (name, prop);