/** * Try to load the beans class declared in the <ejb-class> * element. * * @return <code>true</code> if everything went alright */ protected boolean verifyBean(BeanMetaData theBean) { String beanName = theBean.getEjbClass(); if (beanName == null) return false; try { bean = classloader.loadClass(beanName); return true; } catch (ClassNotFoundException cnfe) { fireSpecViolationEvent(theBean, new Section("22.2.b", "Class not found on '" + beanName + "': " + cnfe.getMessage())); return false; } }
/** * Try to load the beans class declared in the <ejb-class> * element. * * @return <code>true</code> if everything went alright */ protected boolean verifyBean(BeanMetaData theBean) { String beanName = theBean.getEjbClass(); if (beanName == null) return false; try { bean = classloader.loadClass(beanName); return true; } catch (ClassNotFoundException cnfe) { fireSpecViolationEvent(theBean, new Section("22.2.b", "Class not found on '" + beanName + "': " + cnfe.getMessage())); return false; } }
/** * The EJBDeployer calls this method. The EJBDeployer has set * all the plugins and interceptors that this bean requires and now proceeds * to initialize the chain. The method looks for the standard classes in * the URL, sets up the naming environment of the bean. The concrete * container classes should override this method to introduce * implementation specific initialization behaviour. * * @throws Exception if loading the bean class failed * (ClassNotFoundException) or setting up "java:" * naming environment failed (DeploymentException) */ protected void createService() throws Exception { // Acquire classes from CL beanClass = classLoader.loadClass(metaData.getEjbClass()); if (metaData.getLocalHome() != null) localHomeInterface = classLoader.loadClass(metaData.getLocalHome()); if (metaData.getLocal() != null) localInterface = classLoader.loadClass(metaData.getLocal()); localProxyFactory.setContainer(this); localProxyFactory.create(); if (localHomeInterface != null) ejbModule.addLocalHome(this, localProxyFactory.getEJBLocalHome()); ejbModule.createMissingPermissions(this, metaData); // Allow the policy to incorporate the policy configs Policy.getPolicy().refresh(); }
throw new IllegalStateException("Cannot obtain bean meta data for: " + ejbLink); String ejbClass = beanMetaData.getEjbClass();
throw new IllegalStateException("Cannot obtain bean meta data for: " + ejbLink); String ejbClass = beanMetaData.getEjbClass();
throw new IllegalStateException("Cannot obtain bean meta data for: " + ejbLink); String ejbClass = beanMetaData.getEjbClass();
ubmd.setEjbClass(bmd.getEjbClass()); ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome());
ubmd.setEjbClass(bmd.getEjbClass()); ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome());
ubmd.setEjbClass(bmd.getEjbClass()); ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome());