synchronized void handleSendMessage(GSMessageImpl message) throws RemoteException, TransactionException, JMSException {
  if (m_acknowledgeMode != Session.SESSION_TRANSACTED) {
    doSend(message,null);
    if (m_space.isEmbedded()) {
      message.setProperties(message.cloneProperties());
    }
  }
 else {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.fine("GSSessionImpl.sendMessage():" + " Adding message to sent messages list: " + message.JMSMessageID);
    }
    GSMessageImpl duplicate=message.duplicate();
    sentMessages.add(duplicate);
  }
}

synchronized void handleSendMessage ( GSMessageImpl message ) throws RemoteException , TransactionException , JMSException { if ( m_acknowledgeMode != Session . SESSION_TRANSACTED ) { doSend ( message , null ) ; if ( m_space . isEmbedded ( ) ) { message . setProperties ( message . cloneProperties ( ) ) ; } } else { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "GSSessionImpl.sendMessage():" + " Adding message to sent messages list: " + message . JMSMessageID ) ; } GSMessageImpl duplicate = message . duplicate ( ) ; sentMessages . add ( duplicate ) ; } }
sends a jms message . called by the messageproducer . if the session is transacted the message is added to the sent messages list .
