protected void sendMessage( final Message message ) throws SmooksRoutingException
{
try {
waitWhileAboveHighWaterMark();
} catch (JMSException e) {
throw new SmooksRoutingException("Exception while attempting to check JMS Queue High Water Mark.", e );
}
try
{
msgProducer.send( message );
}
catch (JMSException e)
{
final String errorMsg = "JMSException while sending Message.";
throw new SmooksRoutingException( errorMsg, e );
}
}