Skip to content

Instantly share code, notes, and snippets.

@clebertsuconic
Created August 11, 2014 17:02
Show Gist options
  • Save clebertsuconic/57fd9c392984bdaf88f9 to your computer and use it in GitHub Desktop.
Save clebertsuconic/57fd9c392984bdaf88f9 to your computer and use it in GitHub Desktop.
public void returnBlocking(Exception cause)
{
lock.lock();
try
{
HornetQException ex = HornetQClientMessageBundle.BUNDLE.unblockingACall();
ex.initCause(cause);
response = new HornetQExceptionMessage(ex);
sendCondition.signal();
}
finally
{
lock.unlock();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment