added some comments about what we should problably do...

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@476262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-11-17 19:17:59 +00:00
parent 94f16ac6ab
commit 411e750806
1 changed files with 6 additions and 0 deletions

View File

@ -66,7 +66,13 @@ public class KahaMessageStore implements MessageStore, UsageListener{
public synchronized void addMessage(ConnectionContext context,Message message) throws IOException{
StoreEntry item = messageContainer.placeLast(message);
// TODO: we should do the following but it is not need if the message is being added within a persistence transaction
// but since I can't tell if one is running right now.. I'll leave this out for now.
// if( message.isResponseRequired() ) {
// messageContainer.force();
// }
cache.put(message.getMessageId(),item);
}
public synchronized void addMessageReference(ConnectionContext context,MessageId messageId,long expirationTime,String messageRef)