Configuring package properties

The Package Properties window has three tabs:

General tab properties

The following table describes the properties on the General tab.

Table 6-3: Package properties: General tab

Property

Description

Comments/Example

Description

A description of the package. The description can be up to 255 characters.

View or change the description of an existing component or set the description of a new one.

Role Mapping properties

You can map permissions for component methods to roles defined in Adaptive Server. See “Permissions and roles” for more information about roles in EJB Server.

If you want to restrict access to a Bean, you must, for each method:

StepsTo map a J2EE role to an Adaptive Server role:

  1. If necessary, define a new Adaptive Server role. See the Adaptive Server Administration Guide for instructions.

  2. Select the Role Mapping tab from the Package Properties window.

  3. Click Add. Double-click the J2EE role and enter a J2EE role name. You can also enter a description for the role in the provided field.

  4. Select an Adaptive Server role from the drop-down list. This is the role from which the J2EE role inherits its permissions and members.

  5. Repeat steps 2 through 4 for each method in the package with an encoded J2EE role.

All Properties settings

The All Properties tab allows you to edit package property settings as they are stored in the EJB Server configuration repository. You can only delete properties that you have added—you cannot delete default properties, such as the com.sybase.jaguar.package.components property.

StepsTo edit package properties:

  1. Look for the property name in the list of properties. If it is displayed, highlight the property and click Modify. Otherwise, click Add.

  2. If adding the property, fill in the Add Property fields as follows:

  3. If modifying a property, edit the displayed value in the Modify Property window.