Erm... check *what* exactly... :">... Peter.
On Wed, 17 Apr 2002 13:32:55 -0500 "Dain Sundstrom" <[EMAIL PROTECTED]> wrote: > Peter Shillan wrote: > > > Hi there, > > > > If I have a CMP 2.0 attribute which is a collection, I have > > > > public abstract void setChildren(java.util.Collection children); > > > > public abstract java.util.Collection getChildren(); > > > > My understanding was that if I want, I can write the following: > > > > public void addChild(MyBean child) > > { > > Collection children = getChildren(); > > children.add(child); > > setChildren(children); > > > No, you don't need to do the setChildren. The collection is live. > > > > But in the line Collection children = getChildren(); JBoss returns > > > a null. Orion returns a valid empty collection and it strikes me > > > that this behaviour is correct. What is your opinion here? > > > That shouldn't happen. You should always get a collection back. Check > your configuration files. > > -dain ________________________________________________________________________ E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ________________________________________________________________________ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user