}
}
@RemoteMethod
public List<EjbInformation> getDeploymentInfo(String containerId,
String deploymentId, HttpServletRequest request) {
Container container = containerSystem.getContainer(containerId);
BeanContext beanContext = container
.getBeanContext(deploymentId);
List<EjbInformation> informations = new ArrayList<EjbInformation>();
EjbInformation information = new EjbInformation();
information.setName(getLocalizedString(request, BUNDLE_NAME, BEANCLASSNAME_KEY));
information.setValue(beanContext.getBeanClass().getName());
informations.add(information);
if (beanContext.getBusinessLocalInterface() != null) {
information = new EjbInformation();
information.setName(getLocalizedString(request, BUNDLE_NAME, BLI_KEY));
information.setValue(appendMultipleInterfaces(beanContext
.getBusinessLocalInterfaces()));
informations.add(information);
}
if (beanContext.getBusinessRemoteInterface() != null) {
information = new EjbInformation();
information.setName(getLocalizedString(request, BUNDLE_NAME, BRI_KEY));
information.setValue(appendMultipleInterfaces(beanContext
.getBusinessRemoteInterfaces()));
informations.add(information);
}
information = new EjbInformation();
information.setName(getLocalizedString(request, BUNDLE_NAME, DEPLOYMENTID_KEY));
information.setValue(deploymentId);
informations.add(information);
information = new EjbInformation();
information.setName(getLocalizedString(request, BUNDLE_NAME, EJBNAME_KEY));
information.setValue(beanContext.getEjbName());
informations.add(information);
if (beanContext.getHomeInterface() != null) {
information = new EjbInformation();
information.setValue(beanContext.getHomeInterface().getName());
information.setName(getLocalizedString(request, BUNDLE_NAME, EJBHOMEI_KEY));
informations.add(information);
}
if (!container.getContainerType().equals(ContainerType.MESSAGE_DRIVEN)) {
information = new EjbInformation();
Class cls = null;
try {
cls = Class.forName("org.apache.openejb.assembler.classic.JndiBuilder$Bindings");
Method method = cls.getMethod("getBindings");