Task: Websphere Rationale: To automate Websphere 4.0 EJB builds.
Sources affected: EjbJar.java- org.apache.tools.ant.taskdefs.optional.ejb (MODIFIED) WebsphereDeploymentTool.java - org.apache.tools.ant.taskdefs.optional.ejb (CREATED) Prerequisites: Apache Ant 1.3 IBM Websphere 4.0 Advanced Edition (http://www.ibm.com/vadd) IBM DeployTool (http://www.ibm.com/vadd) Attachments: EjbJar.java WebsphereDeploymentTool.java websphere.htm: Documentation page, augments the ejbjar task description test-websphere.zip: Contains sources, build script --Maneesh Sahu www.interkeel.com
EjbJar.java
Description: Binary data
WebsphereDeploymentTool.java
Description: Binary data
EjbJar- Vendor-specific deployment elementsEach vendor-specific nested element controls the generation of a deployable jar specific to that vendor's EJB container. The parameters for each supported deployment element are detailed here. Websphere elementThe websphere element is used to control the websphere.ejbdeploy tool for generating websphere EJB jars. The task expects the following deployment desciptors to be located in the same directory as the rest of the EJB Java files and the generic J2EE EJB deployment descriptor- ejb-jar.xml: � Extensions descriptor file for the EJB- ibm-ejb-jar-ext.xmi � Bindings for the EJB- ibm-ejb-jar-bnd.xmi � Schema XMI for CMP beans- Schema.dbxmi � Mapping for the CMP fields to the Schema � Map.mapxmi Each of these elements should be prefixed with the EJB name. To support multiple database vendor deployment, the schema and mapping files should also contain the database vendor name.
The websphere nested element itself support the nested <classpath> element which is used to set the additional classpath for the websphere.ejbdeploytool. This nested element is useful when setting up class paths using reference Ids. ExamplesThis example shows ejbjar being used to generate deployment jars using a Weblogic EJB container. This example requires the naming standard to be used for the deployment descriptors. Using this format will create a ejb jar file for each variation of '*-ejb-jar.xml' that is found in the deployment descriptor directory. ��� <ejbjar srcdir="${build.classes}"����������� descriptordir="${descriptor.dir}">����� <websphere destdir="${deploymentjars.dir}"�������������� �classpath="${descriptorbuild.classpath}"/> ����� <include name="**/*-ejb-jar.xml"/>��� </ejbjar>
The next example shows how EJB Jar generation for the Oracle database can be performed. ��� <ejbjar srcdir="${build.classes}"����������� descriptordir="${descriptor.dir}">����� <websphere dbvendor="ORACLE_V8" destdir="${deploymentjars.dir}"��������������� classpath="${descriptorbuild.classpath}"/>����� <include name="**/*-ejb-jar.xml"/>��� </ejbjar> |
<<attachment: test-websphere.zip>>
