Set the internationalization type for enterprise beans
This task sets the internationalization type for an enterprise bean within an EJB module.
This topic assumes that we have an assembly tool such as Rational Application Developer.
For information about assembly, refer to the documentation for the assembly tool. The steps in this topic refer to Rational Application Developer.
This topic assumes that we have started the assembly tool, configured the assembly tool for work on JEE modules, and created or imported an EJB project.
Container-managed internationalization (CMI) is the default type; entity beans cannot be set to application-managed internationalization (AMI). Use CMI also for stateless session beans that are enabled for Web services.
- In the Java EE perspective, open the EJB project for which to set the internationalization type.
The EJB Deployment Descriptor panel is displayed.
- Double-click EJB Projects.
- Double-click the name of the EJB project to see its contents.
- Double-click the deployment descriptor object.
- In the EJB Deployment Descriptor panel, click the Internationalization tab. Any enterprise beans that are already configured for AMI are displayed in the Internationalization type list.
- To set the internationalization type for any other enterprise beans to AMI, click Add following the Internationalization type list. The Internationalization Type wizard opens. Only message-driven or session beans can be selected.
- Select the beans to set and click Finish to exit the wizard.
- From the menu bar, click File > Save.
Results
The internationalization type is assigned to the bean.
What to do next
For beans that use container-managed internationalization, we can then set container-managed internationalization attributes. For more information, see "Configuring container internationalization for enterprise beans."
Related concepts
Internationalization type
Related tasks
Configure container internationalization for enterprise beans