try {  m.setJMSMessageID(generateMessageID()); m.setJMSDestination(jmsDestination);   boolean acked = destination.handle((Routable)m);  if (!acked) { log.debug("The message was not acknowledged"); } } catch(Throwable t) { log.error("Message handling failure", t); }
sessionEndpoint.sendMessage(m);
   public void send(Message m)   {      if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); }      try      {         // TODO JMS1.1 specs 3.4.3. If the client can live without a messageID, do not set a new messageID on the message         m.setJMSMessageID(generateMessageID());         m.setJMSDestination(jmsDestination);         boolean acked = destination.handle((Routable)m);         if (!acked)         {            log.debug("The message was not acknowledged");         }      }      catch(Throwable t)      {         log.error("Message handling failure", t);      }   }