Show TOC

 Editing the Environment and Resource EntriesLocate this document in the navigation structure

Use

Use this procedure while you are Enterprise Bean Properties Management , Application Client Properties Management or Web Archive Properties Management .

Note

A Java client archive does not have local references.

Procedure
  1. Select the component.
  2. Choose the Environment tab. Enter data as required in the subtabs.
  3. If you want to modify a setting:
    1. Select it from the list in the corresponding tabbed pane.
    2. Modify its properties.
    3. Click the Modify button to confirm your changes.
  4. If you want to remove a setting:
    1. Select it from the list in the corresponding tabbed pane.
    2. Click the Remove button.
  5. If you want to clear all fields, click the Clear button.
  6. Save the changes of you project.

Setting the EJB Remote References

  1. Choose the EJB Remote Referencestab.
  2. If you want to add a new EJB reference:
    1. Enter a name for the reference in the Reference Name field. This name should be unique for the application.
    2. Specify the expected type of the bean in the Bean Typecombo box.
    3. Select name of the remote home interface from the available ones in the Remote Home field, or enter the fully qualified name of a new one.
    4. Select the name of the remote interface from the available ones in the Remote field or enter the fully qualified name of a new one.
    5. Select a name for the EJB remote reference from the available ones in the EJB Name field or enter a new one.
    6. Enter a description of the EJB remote reference in the Description field.
  3. Click the Add button to add the new entry to the EJB References list.

Setting the EJB Local References

  1. Choose the EJB Local Referencestab.
  2. If you want to create a new local reference you must specify:
    1. The reference name for the enterprise bean in the Reference Name field. This name should be unique for the application.
    2. The expected type of the locally referenced enterprise bean in the Bean Type field.
    3. The fully qualified name of the enterprise bean local home interface in the Local Homefield.
    4. The fully qualified name of the enterprise bean local interface in the Local field.
    5. The name of the enterprise bean in the EJB Name field
  3. Click the Add button. The new local reference will appear in the EJB References list.
    Note

    The EJB Local References tab is available for Web archives and enterprise beans only.

Setting the Resource References

  1. Choose the Resource Referencestab.
  2. If you want to create a new resource reference:
    1. Enter a name in the Resource Namefield. This name must be unique for the application.
    2. In the Resource Type field, specify the type of the resource reference.
    3. In the Authorization Type field, specify the resource authorization. For more information, see Using Resource Adapter to Obtain a Connection .
    4. In the Resource Sharingfield, specify whether the connections obtained using the provided reference to a resource manager connection factory can be shared.
    5. In the Description field, enter a descriptive text.
    6. Click the Add button to add the new entry to the Resource References list.

Setting the Environment Entries

  1. Choose the Environment Entriestab.
  2. If you want to create a new environment entry:
    1. In the Entry Name field, enter the name for the environment entry.
    2. In the Entry Type field, enter the fully qualified Java type of the environment entry value expected by the component's code.
    3. In the Entry Value field, enter the value of the application component's environment entry.
    4. In the Description field, enter a description of the environment entry.
    5. Click the Add button to add the new entry to the Environment Entries list.

Setting the Resource Environment References

  1. Choose the Resource Environment Referencestab.
  2. If you want to create a new resource environment reference:
    1. In the Name field, enter a name for the resource environment reference.
    2. In the Type field, enter the type of the resource environment reference. It is the fully qualified name of a Java class or interface.
    3. In the Description field enter a description for this reference.
    4. Click the Add button to add the new entry to the Resource Environment References list.
    5.  
    6.