|
Step 3: Install and Deploy the Enterprise Beans
- From the Topology view in the Application Server Administrator's Console, expand the tree until the Default Container is displayed.
- Click once to select the Default Container and right-click once.
- Select Create
Enterprise Bean.
- JAR File: Click Browse. Navigate to the <was_root>/deployableEJBs directory.
- Double-click the JAR file to display the various ".ser" (deployment descriptor) files included within. (There is only one ".ser" file per JAR file in the Samples.)
- Double-click the name of the ".ser" file that corresponds to the bean you are adding.
- Confirm the deployment of the JAR file by choosing "Deploy Only" (if it is not already deployed). Wait for the bean to deploy - this may take several seconds.
- Click OK on the window indicating that the bean was deployed successfully.
- Click OK on the "Create Enterprise Bean" window to finish the bean creation.
- Expand the Default Container on the left side of the window.
- Click once on the bean you just deployed. View the bean and ensure that the properties are filled in correctly.
- Stop and Start the Default Server:
- Select the Topology view
- Expand the tree until the Default Server is displayed
- Right-click on the Default Server and choose "Stop"; the wheel icons indicating the server's status should be red and white
- Once the server is stopped, right-click again and choose "Start"; the wheel icons indicating the server's status should be blue and white.
 
- When a bean is installed, its JAR file is automatically appended to the CLASSPATH environment variable.
- By default, the JAR file is placed in the directory named <was_root>/deployedEJBs, or in the directory specified when the IBM WebSphere Application Server Advanced Edition was installed.
|