Enterprise JavaBean Component Tasks in Visual Web JSF Applications: Quick Reference

See Also

This topic describes common tasks that you can perform with Enterprise JavaBeans components (enterprise beans). For more detailed information, click the links in the right column.

To perform this task... Follow these steps
Add an enterprise bean to the IDE
  • To add a set of enterprise beans:
    1. In the Services window, right-click the Enterprise JavaBeans node and choose Add Set of Session EJBs.
    2. Step through the wizard.
  • To add a set of enterprise beans exported by another developer:
    1. In the Services window, right-click the Enterprise JavaBeans node and choose Import EJB Sets.
    2. In the Open dialog box, find the file to import and click Open.
    3. In the Import EJB Sets dialog box, select one or more enterprise beans to import.
    4. If necessary, change the name, host, and port numbers for each enterprise bean set.
Add an enterprise bean to a Visual Web JSF page
  1. In the , expand the Enterprise JavaBeans node Web Services node icon.
  2. Drag the enterprise bean into the page.
Bind to a list component
  1. If the enterprise bean is not part of the IDE, add the enterprise bean to the IDE.
  2. Drag and drop the method onto the component.
  3. Right-click the component and choose Bind to Data.
  4. In the Bind to Data dialog box, click the Data Provider tab.
  5. Choose the method's data provider.
  6. Select the value field and display field for the component.
Bind to a simple component
  1. If the enterprise bean is not part of the IDE, add the enterprise bean to the IDE.
  2. Drag and drop the method onto the component.
  3. Right-click the component and choose Bind to Data.
  4. In the Bind to Data dialog box, click the Data Provider tab.
  5. Choose the method's data provider.
  6. Select the data field to display in the component.
Bind to a Table component
  1. If the enterprise bean is not part of the IDE, add the enterprise bean to the IDE.
  2. Add the Table component to the Visual Designer.
  3. Drag and drop the method onto the table.
Call an Enterprise JavaBean method in your application
  1. If the enterprise bean is not part of the IDE, add the enterprise bean to the IDE.
  2. If the enterprise bean has not been added to the page, drag it to the Visual Designer.
  3. If desired, select a method to see its properties in the Properties window.
  4. Call the method in your Java code.
Delete an enterprise bean
  • To delete an enterprise bean from the page:
    • In the Navigator window, right-click the enterprise bean and choose Delete.
  • To delete an enterprise bean from the Services window:
Import a set of enterprise beans
  1. In the Services window, right-click the Enterprise JavaBeans node and choose Import EJB Sets.
  2. Browse for the EJB set and click Open.
    The EJB set appears under the Enterprise JavaBeans node in the Services window.
Export a set of enterprise beans
  1. In the Services window, right-click the Enterprise JavaBeans node and choose Export EJB Sets.
  2. In the Export EJB Sets dialog box, select the enterprise beans to export.
  3. Enter the location of the file to which to export the enterprise beans.
  4. If necessary, edit the enterprise bean set names, server host name, and port number.
  5. Make the exported file available to the developers who need it.

See Also
About Enterprise JavaBeans Components
Working With Enterprise JavaBeans Components

Legal Notices