8. Deployment

Start the J2EE server and the Deployment Tool by running %J2EE_HOME%\bin\j2ee.bat and %J2EE_HOME%\bin\deploytool.bat respectively. Follow these steps using the Depoyment Tool:

  1. Create a new J2EE application by selecting the New Application... menu option under File menu. This open the following dialog.

    Type the fully qualified Application File Name of the EAR file and its Display Name and select OK. This creates the application and adds it to the left pane of the Deployment Tool window.

  2. Next, we add our JAR file to the application. To do this select Add to Application | EJB JAR... from the File menu. This will prompt you to browse your file system for the JAR file. Select the AboutBean.jar file we created, and hit the Add EJB JAR button. Now, the Deployment Tool window should look like this.

  3. Now we are ready to actually deploy our bean. Select Tools | Deploy... from the menu

    Make sure you enter the data as in the screnshot above. Now hit the Next button. The next screen of the wizard allows us to determinewhat name our bean is to be registered as in tyhe JNDI server. Enter data as below.

    Hit the Next button and after that the Finish button. The deploument process is displayed on the screen. It generates several classes required by the container for the EJB to work properly. These are the additional files, such as RMI stubs and proxies, which allow the container to communicate and interpose services on your bean's behalf.