* @throws JMSException if something went wrong
*/
protected void sendMessage (final ObjectMessage message, final MessageProducer messageProducer) throws JMSException {
+ // Trace message
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("sendMessage: message={0},messageProducer={1} - CALLED!", message, messageProducer)); //NOI18N
+
// The parameter should be valid
if (null == message) {
// Throw NPE
throw new NullPointerException("message is null"); //NOI18N
+ } else if (null == messageProducer) {
+ // Throw NPE again
+ throw new NullPointerException("messageProvider is null"); //NOI18N
}
// Send it
messageProducer.send(message);
+
+ // Trace message
+ this.getLoggerBeanLocal().logTrace("sendMessage: EXIT!"); //NOI18N
}
}