@ejb.permission

Scope: method

Multiplicity

(0..1): You can use this tag zero or one time in the Java™ source file.

Purpose

This tag defines the transactional behavior for the method it is being applied to. Applies to methods with @ejb.create-method and @ejb.interface-method tags. When used on the class level, this tag applies to all interface methods cumulatively. Applies to session and entity beans.

Parameters

Parameter Type Applicability Description Mandatory
role-name text   Comma-separated list of roles allowed to call this method. false
unchecked boolean   Flags the method as having unchecked permission. If the parameter unchecked is present, role-name must be omitted. You must specify one of the following attributes:
  • true
  • false
The default value is
  • true
false

Feedback