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

    Note: 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.
    Screen Capture for Single Action EJB Node Dialog box
    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 in Struts.
  4. If you do not have an existing session bean to use with this Single Action EJB node or you want to create another session bean to associate with this Single Action EJB node, click the Create button to create a Single Action EJB for this node.
    Single Action EJB Node Dialog box with values
  5. Type the bean name in the Bean name field. Click Next.
    Screen capture for Creating an Enterprise Java Bean if you do not have an existing session bean or you want another one
  6. 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.
    Screen capture for detailed information for creating an Enterprise Bean
  7. If you want to create a BTT Single Action session bean, you have to change the Bean supertype drop-down list to extend BTT Single Action EJB interface. Otherwise, you will create a default session bean that Rational® Application Developer or WebSphere® Integration Developer provides.
  8. Select the client interface that you need to create. The BTT Single Action EJB only support remote and local client interfaces.
    Note: The service client is only supported by default session bean.
  9. Click Finish to create an Enterprise Bean.
  10. In the Single Action EJB Node dialog box, click OK 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