Generating deployment code for modules
Before installing your application in WebSphere Application Server, you
must generate deployment code for the application. This step is
required for EJB modules and for any EAR files that contain EJB
modules. During code generation, the Application Assembly Tool invokes
the Deployment Tool for Enterprise JavaBeans to do the following:
- Generate and compile container implementation classes.
- Process the implementation classes by using the RMIC compiler, which
generates the client-side stub and server-side skeletons needed for remote
method invocation (RMI). (You can bypass this step by selecting the
Code Generation Only checkbox on the property dialog box.)
- Validate the JAR file and display error messages if there are any J2EE
specification violations within the JAR file.
- For CMP entity beans, generate the SQL code (Table.ddl file) for
creating database tables.
Note: For Advanced Single Server Edition of this product, only the
Table.dll file is generated. Default (top-down) mapping is
used. Customized mappings are not supported. For information on
default mappings, see the documentation for Deployment Tool for Enterprise
JavaBeans.
To generate deployment code for a module in the Application Assembly Tool,
perform the following steps:
- Note:
- A working directory is used to save temporary files while creating the
deployed archive. On UNIX systems, if there is insufficient space in
this directory, a segmentation violation error can occur. Make sure
that there is sufficient space in the working directory. Required space
varies depending on the application. By default, the working directory
is /tmp on UNIX systems. You can specify a different
directory in the Working directory field on the property dialog box.
- Click File->Open and select the module. The
module is displayed in the main window.
- Right-click the name of the module at the top of the navigation pane and
choose Generate code for deployment. A property dialog box
is displayed. Enter or edit values for Assembly properties for generating deployment code. By default, the newly created archive file has the
same name as the current archive file with the prefix
Deployed_. Click Generate Now.
- View status messages in the window and resolve any errors reported.
- To close the window, click the x button in the top right corner
of the window.
If the modules in an application are already deployed, the Application
Assembly Tool regenerates deployment code for them.
Note: Ensure that your JAR files do not contain source code
(.java files). On certain platforms, JAR files containing source
code can cause compilation errors during deployment code generation.