Configuring the component properties

After you have defined the component and its methods, you may need to configure the properties described here.

StepsConfiguring EJB component properties

  1. If you are defining a stateful session bean, optionally switch to the Resources tab and enter a time limit in the Instance Timeout field. This value specifies how long, in seconds, that a client can hold an instance reference without making any calls. If you do not enter a value, or you specify 0, client references do not expire.

  2. If creating an entity bean with container-managed persistence, configure the persistence settings as described in “Configuring automatic or EJB CMP persistence”.

  3. Optionally configure the transaction properties for each method in the home and remote interfaces, or if all are the same, configure the component’s transaction properties. See “Component properties: Transactions” for more information.

  4. If defining a version 2.0 or 1.1 EJB that calls other components, configure the properties described in “Configuring EJB references”.

  5. If defining a version 2.0 or 1.1 EJB that uses database connections or JavaMail sessions, configure the properties described in “Configuring resource references”.

  6. If defining a version 2.0 or 1.1 EJB, configure method security constraints as described in “Configuring role references and method permissions”.

  7. If defining a version 2.0 EJB that calls other components, optionally configure the Run-As Identity properties to specify the identity used in intercomponent calls. See “Component properties: Run-As Identity” for more information.

  8. If defining a version 2.0 EJB that uses JMS, configure the properties described in “Component properties: Resource Environment Refs”.

  9. If defining a version 1.0 EJB that calls other components, configure the properties described in “Component properties: Run-As Mode”.

  10. Optionally configure environment properties as described in “Configuring environment properties”.