Appendix A: Using EJB 1.0 JAR Support  EJB 1.0 deployment descriptor properties

Appendix A: Using EJB 1.0 JAR Support

Importing and exporting EJB 1.0 JAR files

StepsImporting an EJB 1.0 JAR file

This feature is provided for backward compatibility with previous EAServer versions and any EJB 1.0 servers. To import the JAR file:

  1. Start EAServer Manager if it is not already running, and connect to the server where you want to install the component.

  2. Highlight the top-level Packages folder. Choose File | Deploy | EJB 1.0 JAR.

  3. Enter the path to the JAR file, and optionally enter a package name. If you do not specify a package name, EAServer installs the components into a package with the same name as the base JAR file name. For example, components imported from EmploymentAuth.jar are installed to package EmploymentAuth.

  4. EAServer Manager displays the beans that are defined in the JAR file. Select and configure beans for deployment as follows:

    1. In the left column, select the check boxes for each bean that you want to deploy, or click Select All to deploy all beans.

    2. Highlight each selected bean, then click Configure. Verify the deployment descriptor properties described in “EJB 1.0 deployment descriptor properties”.

  5. When all selected beans have been configured, click Deploy.

  6. Map role names that were read from the deployment descriptor to role names that exist in EAServer Manager. Names in the left column are used in the deployment descriptor; these may not match existing roles in EAServer Manager, or may match roles that do not agree with the access control requirements intended for the bean. For each name in the left column, assign a role name using the drop-down list in the right column.

  7. Map run-as identity names that were read from the deployment descriptor to identity names that exist in EAServer Manager. You can configure these mappings now or later. To configure now, for each name in the left column, assign an identity name using the drop-down list in the right column. To configure after deployment completes, use the Run-As Mode tab in the Component Properties or Method Properties dialog.

  8. Optionally generate stubs and skeletons for the bean. You must generate stubs and skeletons before the bean can run, but you can do so after deployment completes. If generating now, specify a code base for the generated files. Sybase recommends the EAServer java/classes subdirectory, which is the default.

StepsExporting an EJB 1.0 JAR file

  1. Highlight the EAServer package to export and choose File | Export, then choose EJB 1.0 JAR.

  2. Enter the path and file name for the new JAR file and click Next.

  3. EAServer Manager creates the JAR file, displaying status messages in the Export wizard.





Copyright © 2005. Sybase Inc. All rights reserved. EJB 1.0 deployment descriptor properties