String localHomeName = bean.getLocalHome(); String localName = bean.getLocal();
String localHomeName = bean.getLocalHome(); String localName = bean.getLocal();
/** * 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(); }
ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());
ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());
ubmd.setServiceEndpointInterface(bmd.getServiceEndpoint()); ubmd.setHome(bmd.getHome()); ubmd.setLocalHome(bmd.getLocalHome()); ubmd.setJndiName(bmd.getJndiName()); ubmd.setLocalJndiName(bmd.getLocalJndiName());