Skip to content

Instantly share code, notes, and snippets.

@clebertsuconic
Created October 15, 2012 21:26
Show Gist options
  • Save clebertsuconic/3895634 to your computer and use it in GitHub Desktop.
Save clebertsuconic/3895634 to your computer and use it in GitHub Desktop.
private class MyOutgoingInterceptor2 implements Interceptor
{
public boolean intercept(final Packet packet, final RemotingConnection connection) throws HornetQException
{
if (packet.getType() == PacketImpl.SESS_RECEIVE_MSG)
{
SessionReceiveMessage msg = (SessionReceiveMessage) packet;
if (msg.getMessage().containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE))
{
return true;
}
else
{
return false;
}
}
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment