According to Specs. anonymous wrote : 10.3.6.1 Use of the java.util.Collection API to Update Relationships | The Bean Provider should exercise caution when using an Iterator over a collection in a container-managed relationship. In particular, the Bean Provider should not modify the container-managed collection while the iteration is in progress in any way that causes elements to be added or removed, other than by the java.util.Iterator.remove() method. If elements are added or removed from the underlying container-managed collection used by an iterator other than by the java.util.Iterator. | remove() method, the container should throw the java.lang.IllegalStateException on the next operation on the iterator.
I would suggest for CMR collections, if you want to modify them while iterating around, make a copy of the CMR Collection and then modify it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829024#3829024 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829024 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user