boolean sendMessages(LinkedList<GSMessageImpl> messages,Transaction tx) throws RemoteException, TransactionException, JMSException {
  if (_logger.isLoggable(Level.FINEST)) {
    _logger.finest("GSSession.sendProducedMessages()");
  }
  boolean messagesSent=false;
  int size=messages.size();
  GSMessageImpl[] copy=new GSMessageImpl[size];
  Iterator<GSMessageImpl> iter=messages.iterator();
  for (int j=0; j < size; j++) {
    copy[j]=iter.next();
  }
  for (int i=0; i < copy.length; i++) {
    messagesSent=messagesSent | doSend(copy[i],tx);
  }
  return messagesSent;
}

boolean sendMessages ( LinkedList < GSMessageImpl > messages , Transaction tx ) throws RemoteException , TransactionException , JMSException { if ( _logger . isLoggable ( Level . FINEST ) ) { _logger . finest ( "GSSession.sendProducedMessages()" ) ; } boolean messagesSent = false ; int size = messages . size ( ) ; GSMessageImpl [ ] copy = new GSMessageImpl [ size ] ; Iterator < GSMessageImpl > iter = messages . iterator ( ) ; for ( int j = 0 ; j < size ; j ++ ) { copy [ j ] = iter . next ( ) ; } for ( int i = 0 ; i < copy . length ; i ++ ) { messagesSent = messagesSent | doSend ( copy [ i ] , tx ) ; } return messagesSent ; }
send all messages to the space .
