Assemble the application: Assemble the EJB module

The application assembly tool is used to package the enterprise bean files into an EJB module. The EJB module is used in later steps to assemble an application and deploy it into a WebSphere Application Server instance. The end result of an EJB module is a JAR file that contains enterprise bean files.

  1. Start the application assembly tool. On your workstation, select Start --> Programs -> IBM Websphere -> Application Server v5.0 -> Application Assembly Tool.

  2. The Welcome to the Application Assembly Tool window is displayed. On the New tab, click EJB Module, and click OK.

    The application assembly tool uses a navigation bar to access various parts of the interface. The EJB module file has a default name and directory structure and contains general EJB module information.

  3. Set up general EJB module information.

    • On the General tab, specify the following:

      • In the Display name field, specify PSSampleMDB.
      • Optionally, you can specify a description in the Description field.
      • Click Apply.

  4. Add the message-driven beans sample application files to the application assembly tool.

    • In the navigation bar, right-click Files, and select Add Files.

    • Click Browse, and navigate to the mdb.jar file.
    • Select mdb.jar, and click Select.
    • Select the com folder in the list that appears in the window.
    • Click Add.
    • Click OK.

  5. Add the enterprise bean file.

    • In the navigation bar, right-click Message Driven Beans, and select New.
    • In the EJB name field, specify PSSampleMDB.
    • In the Display name field, specify PSSampleMDB.
    • Optionally, you can specify a description in the Description field.
    • Click Browse next to the EJB class field.
    • Click Browse next to the Root Directory or Archive field.
    • Locate the mdb.jar file in the mdbsamp folder, and click Select.
    • Expand the com/ibm/websphere/samples/messaging/pubsub directory.
    • Select JMSpsSampleMDBBean.class.
    • Click OK.
    • On the General tab, select Container from the Transaction type drop-down list.
    • On the Advanced tab, select Topic from the Type drop-down list.
    • On the Advanced tab, select Durable from the Subscription durability drop-down list.
    • On the Bindings tab, specify SamplePubSubListenerPort in the Listener Port Name field.
    • Click OK.

  6. Save your EJB module.

    • Select the File -> Save menu item to save your EJB module in the mdbsamp folder.
    • Save your EJB module as PSSampleMDB.jar.
    • Click OK.

  7. Select the File -> Close menu item to close the file.

Continue Next: Assemble the application client