Hi,

I am currently looking at the MessageStore part of the new JMS
implementation.  I would like to propose the addition of the following
method to MessageStore interface: 

"Iterator getSavedMessagesIterator()"

The reason being that the MessageStore implementation may not want to
store all of the MessageReferences in memory to improve scalability. 
Implementing an Iterator interface to handle this will be a lot simpler
than implementing a List interface.  This will also give the caller more
control as to the resource usage by the system (e.g. the caller can load
the messages into a list if it so desires).  This should also be the
preferred method for getting at all of the messages in the store, almost
to the point where I would suggest deprecating or removing "List
getSavedMessages()".

Regards,
Mike.

-- 
Michael Barker <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to