package org.mockejb.jms;
import javax.jms.*;
import org.mockejb.MethodNotImplementedException;
class QueueConnectionImpl extends MockConnection implements QueueConnection {
QueueConnectionImpl(int clientId) {
super("QueueClient:" + clientId);
}
public QueueSession createQueueSession(
boolean transacted,
int acknowledgeMode)
throws JMSException {
return (QueueSession)createSession(transacted, acknowledgeMode);
}
public ConnectionConsumer createConnectionConsumer(
Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException {
checkClosed();
throw new MethodNotImplementedException(
"createConnectionConsumer",
"QueueConnectionImpl");
}
MockSession createMockSession(boolean transacted, int acknowledgeMode) {
return new QueueSessionImpl(transacted, acknowledgeMode, this);
}
}