0.35: What is generating code for deployment? (brief description)

Deployment is the process of making an application available for use. The Application Assembly Tool is used to prepare an application for deployment. It assembles the modules that make up the application and creates deployment descriptor files. For applications that contain enterprise beans (EJB modules), the Application Assembly Tool invokes the Deployment Tool for Enterprise JavaBeans to generate the container implementation classes, and the client-side stubs and server-side skeletons needed for remote method invocation (RMI). The container-specific code is needed to handle services for the application, such as security, transactions, and persistence. For CMP entity beans, the Application Assembly Tool generates persistence code. If needed, the tool also generates a Table.ddl file (the SQL code for creating the database table) and the map and schema documents.

After a module is created, it must be configured and installed in a container. A single module (JAR or WAR file) or an entire application (EAR file) can be configured. (If a single module is installed, it is automatically wrapped in an EAR file.) The process of configuration consists of preparing the application for the run-time environment. For example, external resources needed by the application (and not bundled with the module), such as other enterprise beans or data stores, must be located and bound to the application. Security must be set up based on the access control instructions defined in the module's deployment descriptor.