Method properties

Description

Method property names begin with com.sybase.jaguar.method. In EAServer Manager, configure method properties in the Method Properties dialog box, and in the Interfaces folder beneath a component that uses the method.

Method properties are configured on a per-component basis. An interface used by two components may have different method properties for each component.

See also

com.sybase.jaguar.component.methods




com.sybase.jaguar.method.flags

Description

Specifies flags to enable nondefault method behavior.

Syntax

A comma-separated list of the following:

Flag

To indicate

ks

This flag must be present if the method returns a key sequence, that is, the method is an entity finder method that returns multiple keys.

ro

The method is read-only.

For stateful or entity components only. Specifies whether the method can change the component’s state. This setting allows the server to omit processing that is otherwise required to save a component’s state. For example, the ejbStore method is not called for an EJB entity bean if a read-only method has been invoked.

Usage

In EAServer Manager, you can set the “ro” flag with the Read only check box on the General tab in the Method Properties dialog box. To set other flags, use the Advanced tab.




com.sybase.jaguar.method.iso_level

Description

For EJB 1.0 components, specifies the isolation level for transactions begun by the component’s methods.

Syntax

See com.sybase.jaguar.component.iso_level.




com.sybase.jaguar.method.monitor

Description

Assigns this method to a thread monitor.

Syntax

Specify the monitor name.

Usage

If you change this setting, you must regenerate and recompile the component skeleton for the change to take effect.

See also

Thread monitor properties, com.sybase.jaguar.component.monitor




com.sybase.jaguar.method.name

Description

Specifies the method name.

Syntax

package/component/method

Where:




com.sybase.jaguar.method.roles

Description

For non-EJB components, specifies role memberships required to execute the method.

Syntax

role1, role2, ...

Where role1, role2, and so forth are role names defined in the repository.

Usage

In EAServer Manager, set this property using the File menu for the Roles folder displayed below the method icon.

Roles are attached to EAServer packages, components, and methods. Attaching a role to a package controls access to all non-EJB components in the package. Attaching a role to a component constrains access to all methods in the component’s interfaces. Attaching a role to a method constrains access to that method.

For EJB components, configure access control at the method level by setting the method property com.sybase.jaguar.method.security-roles for each method.

See also

com.sybase.jaguar.component.roles, com.sybase.jaguar.package.roles, com.sybase.jaguar.method.security-roles




com.sybase.jaguar.method.runasidentity

Description

For EJB 1.0 components, specifies an identity name used for intercomponent calls if the com.sybase.jaguar.method.runasmode property is “specified.”

Syntax

Same as for the com.sybase.jaguar.component.runasidentity component property.

Usage

In EAServer Manager, set this property using the Run As Mode tab in the Method Properties dialog box.

See also

com.sybase.jaguar.method.runasmode, com.sybase.jaguar.component.runasidentity




com.sybase.jaguar.method.runasmode

Description

For EJB 1.0 components, specifies the user identity that is assumed for intercomponent calls.

Syntax

Same as for the com.sybase.jaguar.component.runasmode component property.

Usage

In EAServer Manager, set this property using the Run As Mode tab in the Method Properties dialog box.

See also

com.sybase.jaguar.method.runasidentity, com.sybase.jaguar.component.runasmode




com.sybase.jaguar.method.security-roles

Description

For EJB components, specifies role memberships required to execute the method.

Syntax

A comma-separated list of role reference names. Each name must exist in the repository to be mapped to an EAServer role name by the package or application properties.

If this property is not set, the behavior depends on the server property com.sybase.jaguar.server.ejb.role.default. If the property is set, the user must be a member of one of the required EAServer roles to invoke the method.

Usage

In EAServer Manager, set this property on the Permissions tab in the Method Properties dialog box.

See also

com.sybase.jaguar.application.security-roles, com.sybase.jaguar.application.security-role.<j2ee-role>, com.sybase.jaguar.package.security-roles, com.sybase.jaguar.package.security-role.<j2ee-role>




com.sybase.jaguar.method.tx_type

Description

Specifies how this method participates in transactions.

Syntax

Same as for the com.sybase.jaguar.component.tx_type component property. If the method property is not set, the component setting is used.

Usage

In EAServer Manager, set this property on the Transactions tab in the Method Properties dialog box.

See also

com.sybase.jaguar.component.tx_type