Importing Sample Project

Before running the project, you must import the sample project to TIBCO Business Studio.

Prerequisites

  • Ensure you have started a JBoss Application Server version 7.1.x.
  • Ensure that the .jar files, ejb3server.jar and jboss7stateless.jar, in the TIBCO_HOME/bw/palettes/ejb/version_number/Samples/Examples/Examples/lib are deployed to your JBoss Application Server.

Procedure

  1. Start TIBCO Business Studio.
  2. Click File > Import.
  3. In the Import dialog, expand the General folder and select the Existing Studio Projects into Workspace item. Click Next.
  4. Click Browse next to the Select root directory field to locate the samples. Click Finish. The sample project is located in the TIBCO_HOME/bw/palettes/ejb/version_number/Samples/ directory.
  5. In the Project Explorer view, expand lib. Double-click jboss-ejb-client.properties and jndi.properties and update the content according to your JBoss Application Server.
  6. In the Project Explorer view, click Examples > Resources > test, double-click NewEJBResource.ejbResource. Configure the EJB Configuration shared resource in the displayed editor according to your JBoss Application Server, and click Test Connection to verify the configuration.
    The expected message is Test Connection Successfully.

Result

The sample project is imported to TIBCO Business Studio.