- 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.

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.
- 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.
- 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.
- 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.

- Type the bean name in the Bean name field. Click Next.

- 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.

- 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.
- 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.
- Click Finish to create an Enterprise Bean.
- 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.