[Version 5.0.2 and later]Configuring container internationalization for enterprise beans

This task configures container internationalization for enterprise bean business methods.

Why and when to perform this task

This procedure relates one or more business methods to one or more container-managed internationalization (CMI) attributes.

[Version 5.0.2 and later]Use this also for stateless session beans that are enabled for Web services.

Steps for this task

  1. [5.0 only][Version 5.0.1][Version 5.0.2]Start the Application Assembly Tool.
  2. [5.0 only][Version 5.0.1][Version 5.0.2]In the left-hand panel, expand your EJB module.
  3. [5.0 only][Version 5.0.1][Version 5.0.2]Select Internationalization.
  4. [5.0 only][Version 5.0.1][Version 5.0.2]To configure a new attribute, right-click on Internationalization and select New; otherwise, skip to step 5.
    1. On the New Container Internationalization Attribute panel, enter a Description that uniquely identifies the policy.
    2. Click Add. From the Add Methods list, select one or more methods to which the attribute will apply and click OK to exit the panel. The selections appear in the Methods list.
    3. Click OK.
    The new attribute description is displayed in the Description list.
  5. [5.0 only][Version 5.0.1][Version 5.0.2]Select a named Container Internationalization Attribute from the Description list.
    The fields of the selected attribute are displayed.
  6. [5.0 only][Version 5.0.1][Version 5.0.2]If desired, re-enter a description (name) that uniquely identifies this attribute.
    A description is an arbitrary character string.
  7. [5.0 only][Version 5.0.1][Version 5.0.2]To specify the list of bean methods to which the attribute applies, click the Add button adjacent to the Methods list.
    The Add Methods panel is displayed.
  8. [5.0 only][Version 5.0.1][Version 5.0.2]Select a bean method to which the attribute applies.
  9. [5.0 only][Version 5.0.1][Version 5.0.2]Click Apply.
    The method appears in the methods list. Repeat these steps for each remaining bean method that you want configure.
  10. [5.0 only][Version 5.0.1][Version 5.0.2]Click OK to exit the Add Methods panel.
  11. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Run As field by selecting Caller, Server, or Specified.
    If the bean is to run as Specified, complete the following steps to specify the context elements that the container will scope to bean method invocations; otherwise, click OK to exit the panel.
  12. [5.0 only][Version 5.0.1][Version 5.0.2](Optional) Enter a Description of the specified context.
    A description is an arbitrary character string.
  13. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Time Zone ID fields:
    1. (Optional) Enter the Time zone ID Description.
      A description is an arbitrary character string.
    2. Enter the Time Zone ID.
      A time zone ID is an arbitrary, non-empty string that identifies a time zone supported by the Java SDK type, java.util.SimpleTimeZone. Refer to the topic Container internationalization attributes for details.
  14. [5.0 only][Version 5.0.1][Version 5.0.2]Complete the Locales fields. Complete the following steps to construct an ordered list of locales:
    1. Click Add.
      The Add Locales panel is displayed.
    2. (Optional) Enter the locale Description.
      A description is an arbitrary character string.
    3. Enter the Language code.
      A language code is an arbitrary string. A valid locale must contain at least a language code or a country code.
    4. Enter the Country code.
      A country code is an arbitrary string. A valid locale must contain at least a language code or a country code.
    Refer to the topic Container internationalization attributes for details.
  15. [5.0 only][Version 5.0.1][Version 5.0.2]Click OK to apply your changes and to exit this panel.

Results

The bean methods are now configured to run under the associated internationalization settings.

Related concepts
Container internationalization attributes
Related tasks
Setting internationalization type for enterprise beans
Related reference
Internationalization assembly settings for EJB modules[5.0 only][Version 5.0.1][Version 5.0.2]



Searchable topic ID:   tin_configcontainerejb
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/i18n/tasks/tin_configcontainerejb.html

Library | Support | Terms of Use | Feedback