Creating a Single Action EJB node

To create a Single Action EJB node with the Graphical Builder, do the following:

  1. From the Graphical Editor view of the Graphical Builder, select SingleActionEJB under the CompositonNode and then click the presentation node that will call this Single Action EJB. The Single Action EJB node appears in the Business Logic box and a link is generated between the presentation node and the Single Action EJB node.

    Screen capture showing a Single Action EJB node is linked to a presentation node

    Notes:
    • You probably see an exclamation mark on the Single Action EJB node. You can put your cursor on the exclamation mark and see the help information that indicates you need to associate Single Action EJB node with an existing Single Action EJB described in an ejb-jar.xml file.
  2. Double-click the Single Action EJB node. The Single Action EJB Node Dialog box pops up.
    Note: The name of the local home interface for a EJB must end with LocalHome, otherwise Graphical Builder will not be able to identify this interface as a local interface.
  3. If you already have a session bean to use with this Single Action EJB node, click Browse and locate your ejb-jar.xml file. You can then select a Single Action EJB defined in that file from the EJB name drop-down list.
    Note: You probably see a yellow left arrow between the Single Action EJB node and the presentation node. You can put your cursor on the yellow left arrow and see the help information. The help information indicates you need to define the link between the Single Action EJB node and the presentation node, and resolve the Single Action EJB and WSIF Action in Struts.
  4. If you do not have an existing session bean to use with this Single Action EJB node, click the Create button to create a Single Action EJB for this node.
  5. From the window that pops up, if you already have an EJB project, select an EJB project from the drop-down list. Click Next. If you do not have an EJB project, click New to create a new EJB project.
  6. Type the bean name in the Bean name field. Click Next.
  7. For Enterprise Bean Details, you can select Stateful or Stateless for the session type. Depending on the session type you select, the Single Action EJB node to be created will extend for different super classes.
  8. Click Finish to create a Single Action EJB node.

    If you already have an ejb-jar.xml file, from the Package Explorer view, you can drag and drop the existing ejb-jar.xml file into the Graphical Editor to create a Single Action EJB node.

Related information
Creating a Single Action EJB