2 Replies Latest reply on May 23, 2006 9:07 AM by tom.baeyens

    command interface

    tom.baeyens

      hi Jim,

      I just came across the command interface.

      I would prefer that the interface would be changed to

      public interface Command {
       Object execute();
      }
      


      The return message in case of asynchronous messaging should be handled separate, i think:

      either the return value is automatically packaged and sent to the sender.

      or the command could be responsible itself for sending any return value. in that case it's easier to see that it's part of the same transaction.

      what do you think ?