If you are talking JBoss 3.0 CMP 2.0, I'm aware of the problem. I'll be fixing it after I close the current bug reports.
-dain Eric Kaplan wrote: > We have a bean that holds onto a Hashtable of values. Another bean then > accesses the bean through its remote interface, calls the method getValues() > which returns this Hashtable, and does some manipulation with it. The > problem here is inconsistency on what happens. In some cases, the Hashtable > is serialized and returned, since it is being accessed through the remote > interface. Such would be the case with one bean accessing a bean in a > separate container. However, we noticed that modifying this Hashtable > actually resulted in a modification to the bean, since within the container > a reference was being returned. I understand that the container returns by > reference to improve performance. Since a Hashtable is by definition not > immutable, should by getValues() method always return a copy of the > Hashtable()? My only concern is this will be a performance drag. > > What's the right thing to do here? > > Thanks > > Eric Kaplan > Armanta, Inc. > 55 Madison Ave. > Morristown, NJ 07960 > Phone: (973) 326-9600 > > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user