To create a Single Action EJB, do the following:
- In the J2EE perspective of the Rational® Application Developer (RAD),
select from the menu to load
the New Enterprise Application Project window.
- Create a new J2EE 1.4 Enterprise Application project
and its associated EJB module. You can also use an existing EJB module.
- In your Application Developer, right-click the EJB module of your
J2EE project, and select Properties. A window
pops up.
- In the left navigation tree of the new window, select Java
Build Path.
- On the right panel, select the Libraries tab.
- Click the Add External JARs button. The JAR
Selection window pops up.
- Browse to the following .jar files and add them as the
external JARs:
- bttbase.jar
- bttsvrbean.jar
You can find these .jar files in the /jars directory of your toolkit
installation folder.
- Right-click the EJB module of your J2EE project, select to
create a session EJB.
- When the wizard prompts for session type, select either Stateful or Statelesss
according to your need.

- When the wizard prompts for the Bean superclass, enter com.ibm.btt.server.bean.BaseSingleAction.
- Click Finish. Your Single Action
EJB is created but is now with errors because it lacks BTT Exception definitions.
- Write your business logic into the bean based on the methods that
the BaseSingleAction offers.
- Configure your Single Action EJB.