public OpenejbJar getOpenejbJar() { return ejbModule.getOpenejbJar(); }
void configureWebserviceSecurity(final EjbJarInfo ejbJarInfo, final EjbModule ejbModule) { final Object altDD = ejbModule.getOpenejbJar(); final List<PortInfo> infoList = ejbJarInfo.portInfos; this.configureWebserviceScurity(infoList, altDD); }
void configureWebserviceSecurity(final EjbJarInfo ejbJarInfo, final EjbModule ejbModule) { final Object altDD = ejbModule.getOpenejbJar(); final List<PortInfo> infoList = ejbJarInfo.portInfos; this.configureWebserviceScurity(infoList, altDD); }
void configureWebserviceSecurity(EjbJarInfo ejbJarInfo, EjbModule ejbModule) { Object altDD = ejbModule.getOpenejbJar(); List<PortInfo> infoList = ejbJarInfo.portInfos; configureWebserviceScurity(infoList, altDD); }
private void writeOpenejbJar(EjbModule ejbModule) { try { OpenejbJar openejbJar = ejbModule.getOpenejbJar(); File tempFile = File.createTempFile("openejb-jar-", ejbModule.getModuleId() + ".xml"); FileOutputStream fout = new FileOutputStream(tempFile); BufferedOutputStream out = new BufferedOutputStream(fout); try { JaxbOpenejbJar3.marshal(OpenejbJar.class, openejbJar, out); logger.info("Dumping Generated openejb-jar.xml to: " + tempFile.getAbsolutePath()); } catch (JAXBException e) { } finally { out.close(); } } catch (Exception e) { } }
private String getProperty(EjbModule ejbModule, String key, String defaultValue) { OpenejbJar openejbJar = ejbModule.getOpenejbJar(); String value = SystemInstance.get().getProperty(key, defaultValue); if (openejbJar != null && openejbJar.getProperties() != null){ value = openejbJar.getProperties().getProperty(key, value); } return value; }
@Override public final AppModule deploy(final AppModule appModule) { for (final EjbModule ejbModule : appModule.getEjbModules()) { final Object altDD = getOpenejbJarType(ejbModule); if (OpenejbJarType.class.isInstance(altDD)) { final OpenejbJarType openejbJarType = OpenejbJarType.class.cast(altDD); convertEjbRefs(ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), openejbJarType); convertMdbConfigs(ejbModule.getEjbJar(), openejbJarType); mergeEntityMappings(ejbModule.getModuleId(), appModule.getCmpMappings(), ejbModule.getOpenejbJar(), openejbJarType); } } return appModule; }
@Override public final AppModule deploy(final AppModule appModule) { for (final EjbModule ejbModule : appModule.getEjbModules()) { final Object altDD = getOpenejbJarType(ejbModule); if (OpenejbJarType.class.isInstance(altDD)) { final OpenejbJarType openejbJarType = OpenejbJarType.class.cast(altDD); convertEjbRefs(ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), openejbJarType); convertMdbConfigs(ejbModule.getEjbJar(), openejbJarType); mergeEntityMappings(ejbModule.getModuleId(), appModule.getCmpMappings(), ejbModule.getOpenejbJar(), openejbJarType); } } return appModule; }
private String getProperty(final String key, final String defaultValue) { String value = SystemInstance.get().getOptions().get(key, defaultValue); final DeploymentModule module = getModule(); if (module instanceof EjbModule) { final EjbModule ejbModule = (EjbModule) module; final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); if (openejbJar != null && openejbJar.getProperties() != null) { value = openejbJar.getProperties().getProperty(key, value); } } return value; }
private String getProperty(final String key, final String defaultValue) { String value = SystemInstance.get().getOptions().get(key, defaultValue); final DeploymentModule module = getModule(); if (module instanceof EjbModule) { final EjbModule ejbModule = (EjbModule) module; final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); if (openejbJar != null && openejbJar.getProperties() != null) { value = openejbJar.getProperties().getProperty(key, value); } } return value; }
public AppModule deploy(AppModule appModule) { for (EjbModule ejbModule : appModule.getEjbModules()) { Object altDD = getOpenejbJarType(ejbModule); if (altDD instanceof OpenejbJarType) { convertEjbRefs(ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), (OpenejbJarType) altDD); convertMdbConfigs(ejbModule.getEjbJar(), (OpenejbJarType) altDD); mergeEntityMappings(ejbModule.getModuleId(), appModule.getCmpMappings(), ejbModule.getOpenejbJar(), (OpenejbJarType) altDD); } } return appModule; }
public AppModule deploy(final AppModule appModule) throws OpenEJBException { for (final EjbModule ejbModule : appModule.getEjbModules()) { final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); if (openejbJar == null) { return appModule; } final Map<String, EjbDeployment> ejbDeployments = openejbJar.getDeploymentsByEjbName(); for (final EnterpriseBean enterpriseBean : ejbModule.getEjbJar().getEnterpriseBeans()) { final EjbDeployment ejbDeployment = ejbDeployments.get(enterpriseBean.getEjbName()); if (ejbDeployment == null) { continue; } final String mappedName = enterpriseBean.getMappedName(); if (mappedName != null && mappedName.length() > 0) { ejbDeployment.getJndi().add(new Jndi(mappedName, "Remote")); } } } return appModule; } }
public AppModule deploy(final AppModule appModule) throws OpenEJBException { for (final EjbModule ejbModule : appModule.getEjbModules()) { final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); if (openejbJar == null) { return appModule; } final Map<String, EjbDeployment> ejbDeployments = openejbJar.getDeploymentsByEjbName(); for (final EnterpriseBean enterpriseBean : ejbModule.getEjbJar().getEnterpriseBeans()) { final EjbDeployment ejbDeployment = ejbDeployments.get(enterpriseBean.getEjbName()); if (ejbDeployment == null) { continue; } final String mappedName = enterpriseBean.getMappedName(); if (mappedName != null && mappedName.length() > 0) { ejbDeployment.getJndi().add(new Jndi(mappedName, "Remote")); } } } return appModule; } }
public AppModule deploy(AppModule appModule) throws OpenEJBException { for (EjbModule ejbModule : appModule.getEjbModules()) { OpenejbJar openejbJar = ejbModule.getOpenejbJar(); if (openejbJar == null) { return appModule; } Map<String, EjbDeployment> ejbDeployments = openejbJar.getDeploymentsByEjbName(); for (EnterpriseBean enterpriseBean : ejbModule.getEjbJar().getEnterpriseBeans()) { EjbDeployment ejbDeployment = ejbDeployments.get(enterpriseBean.getEjbName()); if (ejbDeployment == null) { continue; } String mappedName = enterpriseBean.getMappedName(); if (mappedName != null && mappedName.length() > 0) { ejbDeployment.getJndi().add(new Jndi(mappedName, "Remote")); } } } return appModule; } }
private void writeOpenejbJar(final EjbModule ejbModule) { try { final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); final File tempFile = tempFile("openejb-jar-", ejbModule.getModuleId() + ".xml"); final OutputStream out = IO.write(tempFile); try { JaxbOpenejbJar3.marshal(OpenejbJar.class, openejbJar, out); logger.info("Dumping Generated openejb-jar.xml to: " + tempFile.getAbsolutePath()); } catch (final JAXBException e) { // no-op } finally { IO.close(out); } } catch (final Exception e) { // no-op } }
private void writeOpenejbJar(final EjbModule ejbModule) { try { final OpenejbJar openejbJar = ejbModule.getOpenejbJar(); final File tempFile = tempFile("openejb-jar-", ejbModule.getModuleId() + ".xml"); final OutputStream out = IO.write(tempFile); try { JaxbOpenejbJar3.marshal(OpenejbJar.class, openejbJar, out); logger.info("Dumping Generated openejb-jar.xml to: " + tempFile.getAbsolutePath()); } catch (final JAXBException e) { // no-op } finally { IO.close(out); } } catch (final Exception e) { // no-op } }
public void convertModule(EjbModule ejbModule, EntityMappings entityMappings) { Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null ) for (Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new SunConversion.EntityData(entity)); } // merge data from sun-ejb-jar.xml file SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
public void convertModule(final EjbModule ejbModule, final EntityMappings entityMappings) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new EntityData(entity)); } } // merge data from sun-ejb-jar.xml file final SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file final SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (final SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
public void convertModule(final EjbModule ejbModule, final EntityMappings entityMappings) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new EntityData(entity)); } } // merge data from sun-ejb-jar.xml file final SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file final SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (final SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
public AppModule deploy(AppModule appModule) throws OpenEJBException { boolean output = SystemInstance.get().getOptions().get(OUTPUT_DESCRIPTORS, false); if (output && appModule.getCmpMappings() != null){ writeGenratedCmpMappings(appModule); } for (EjbModule ejbModule : appModule.getEjbModules()) { Options options = new Options(ejbModule.getOpenejbJar().getProperties(), SystemInstance.get().getOptions()); output = options.get(OUTPUT_DESCRIPTORS, false); if (output){ if (ejbModule.getEjbJar() != null) { writeEjbJar(ejbModule); } if (ejbModule.getOpenejbJar() != null) { writeOpenejbJar(ejbModule); } writeGeronimoOpenejb(ejbModule); } } return appModule; }