getLog().debug(++test + "- " + "MyObject ");
MyObject obj = allTypes.getObject();
getLog().debug("OK");
getLog().debug(++test + "- " + "Creating Record beans and adding them to the Collection in Alltypes..");
RecordHome recordHome = (RecordHome)ctx.lookup("Record");
Record[] record = new Record[3];
for (int i = 0; i < 3; i++)
{
try
{
record[i] = recordHome.findByPrimaryKey("bill " + i);
}
catch (FinderException e)
{
record[i] = recordHome.create("bill " + i);
}
record[i].setAddress("SanFrancisco, CA 9411" + i);
allTypes.addObjectToList(record[i]);
}