Is there any reason why we can't make it so that every message context
has an id when its created? I'm fine with having getId() and setId() so
that the default ID can be changed but it seems to me that we never use
a message context without setting the ID. This avoids repeated code
fragments like:

if (msgctx.getMessageID() == null) {  
  String messageID = String.valueOf("uuid:" + UUIDGenerator.getUUID());
  msgctx.setMessageID(messageID);
}

Sanjiva.

Reply via email to