The EJB deployment tool provides a command-line interface
that you can use to generate enterprise bean deployment code. Before
you can successfully run your enterprise beans on either a test or
production server, you need to generate deployment code for the enterprise
beans.
About this task
You generate EJB deployment code by running the
ejbdeploy command.
Running
the EJB deployment tool from the command line:
Procedure
- Open a command prompt.
- Type the following at the prompt:
ejbdeploy in.ear tmp out.ear
ejbdeploy.sh in.ear tmp out.ear
This generates a EAR file called out.ear.
Results
The following activities occur when you run the ejbdeploy command:
- Code is imported from the input JAR or EAR file.
- A top-down mapping is created if one does not exist.
- Deployment code is generated.
- The deployment code is compiled.
- Remote Method Invocation Compiler (RMIC) is run.
- Code is exported to the output JAR or EAR file.
Note: For CMP entity beans, a data definition language (DDL)
file is generated that can be used to create corresponding database
tables that are mapped to CMP fields. The DDL file is contained within
the META-INF\backends\backend_id directory and entitled Table.ddl