String localHome = ejb.getLocalHome();
if (local != null)
{
getLog().debug("Adding ejb-ref for local session ejb "
+ ejb.getName());
EjbRef ref = new EjbRef();
ref.setType("Session");
ref.setEjbName(name);
ref.setName("ejb/" + name);
ref.setEjbInterface(local);
ref.setEjbHomeInterface(localHome);
ref.setLocal(true);
cactusWar.addConfiguredEjbref(ref);
}
}
ejbs = descr.getEntityEjbs();
while (ejbs.hasNext())
{
Entity ejb = (Entity) ejbs.next();
String name = ejb.getName();
String local = ejb.getLocal();
String localHome = ejb.getLocalHome();
if (local != null)
{
getLog().debug("Adding ejb-ref for local entity ejb "
+ ejb.getName());
EjbRef ref = new EjbRef();
ref.setType("Entity");
ref.setEjbName(name);
ref.setName("ejb/" + name);
ref.setEjbInterface(local);
ref.setEjbHomeInterface(localHome);
ref.setLocal(true);
cactusWar.addConfiguredEjbref(ref);
}
}
}