/** Since we are a browser we don't really remove the message from the queue. */ @Override protected void acknowledge( ConnectionContext context, final MessageAck ack, final MessageReference n) throws IOException { if (info.isNetworkSubscription()) { super.acknowledge(context, ack, n); } }
@Override public List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception { super.remove(context, destination); // there's no unacked messages that needs to be redelivered // in case of browser return new ArrayList<MessageReference>(); }