Apply EJB 3.0 Style
Use this dialog box to bring the beans created according to the EJB 1.x or EJB 2.0 specifications into compliance with the EJB 3.0 specification.
Item | Description |
---|---|
EnterpriseBeans to apply EJB 3.0 style to | This table shows the list of Objects encountered in the selected module with EJB facet. Use the checkboxes in the left column of the table to include or exclude beans from refactoring. If a certain bean has a home interface, use the checkbox in the Retain Home interfaces column to convert home interfaces, rather than delete them. |
Environment Access | Select the preferred mode of environment access:
|
Replace JNDI lookup with EJB context lookup | If this checkbox is selected, the system resources will be retrieved using the EJBContext.lookup() . Otherwise, JNDI environment lookup will be used. |
Inline injected fields | If this checkbox is selected, all usages of a context lookup will be replaced with a reference to an an injected field. |
Copy metadata from XML descriptor | Select this checkbox to copy meta information to the ejb-jar.xml file. |
Delete copied XML tags | Clear this checkbox to preserve duplicates. |
Replace Entity beans with CMP to Persistence Unit | Select this checkbox, if you want to try to convert outdated entity beans to Container Managed Persistence. |
Refactor | Click this button to perform refactoring, and close the dialog box. |
Preview | Click this button to open tentative refactoring results in the dedicated tab of the Find tool window, and close the dialog box. |
Last modified: 08 March 2021