JBossSessionBeanMetaData sbeanMD = (JBossSessionBeanMetaData) beanMD;
sbeanMD.setLocal("org.jboss.ifaces.LocalIF");
sbeanMD.setLocalHome("org.jboss.ifaces.LocalHomeIF");
sbeanMD.setHome("org.jboss.ifaces.HomeIF");
sbeanMD.setRemote("org.jboss.ifaces.RemoteIF");
BusinessLocalsMetaData locals = new BusinessLocalsMetaData();
locals.add("org.jboss.ifaces.LocalIF");
locals.add("org.jboss.ifaces.LocalIF2");
sbeanMD.setBusinessLocals(locals);
BusinessRemotesMetaData remotes = new BusinessRemotesMetaData();
remotes.add("org.jboss.ifaces.RemoteIF");
remotes.add("org.jboss.ifaces.RemoteIF2");
sbeanMD.setBusinessRemotes(remotes);