Working With Enterprise JavaBean Components in Visual Web JSF Applications

The following table shows how to use Enterprise JavaBean Components (enterprise beans) in projects with Visual Web JSF support. You can only consume session EJBs in the Visual Web JSF framework.

Number one
Add enterprise bean to IDE

EJB node icon

  • To add a set of enterprise beans to the Services window:
    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 bean sets to import.
    4. If necessary, change the name, host, and port numbers for each enterprise bean set and click OK.

Number two
Add enterprise bean to page

EJB node icon


Number three
Call enterprise bean methods

EJB method icon

  • To view the data produced by the method, bind the simple, list or Table component to the method.
  • To update the data produced by the method, call the method in the Java code for the simple, list or Table component.

Legal Notices