Object obj = getInitialContext().lookup(jndiName);
obj = PortableRemoteObject.narrow(obj, EntityHome.class);
EntityHome home = (EntityHome) obj;
getLog().debug("Creating "+max+" Entity beans");
for(int n = 0; n < max; n ++)
home.create(n, n);
}
private void removeEntityBeans(int max) throws Exception
{
String jndiName = isSecure ? "secure/perf/Entity" : "perfEntity";
Object obj = getInitialContext().lookup(jndiName);