String [] sArr = null;
try {
java.util.Set ejbs = bd.getEjbs();
ManagementObjectManager mom = Switch.getSwitch().getManagementObjectManager();
String moduleName = mom.getModuleName(bd);
String applicationName = mom.getApplicationName(bd);
EjbDescriptor ed = null;
sArr = new String[ejbs.size()];
int i=0;
String j2eeType = null;
for(Iterator it=ejbs.iterator(); it.hasNext(); ) {
ed = (EjbDescriptor) it.next();
j2eeType = mom.getJ2eeTypeForEjb(ed);
sArr[i] = ("j2eeType=" + j2eeType + "," +
"name=" + ed.getName() + "," +
"EJBModule=" + moduleName + "," +
"J2EEApplication=" + applicationName);
i++;