Creating a TIBCO BusinessWorks Container Edition Project from Template

You can use an existing TIBCO BusinessWorks Container Edition project template to create a new project.

Before you beginTIBCO Enterprise Message Service must be running.
    Procedure
  1. Navigate to File > New > Project > BusinessWorks and click the BusinessWorks Project from Template option. Click Next.

    Or click the icon on the toolbar.

    The Create Project from template dialog is displayed.

  2. In the Select Template File field, provide the template file location from the samples directory, bwTemplate > tibco.bw.sample.Template.TemplateSample.1.0.0.bwtemplate. The project in the template is displayed.

  3. To see information about template, click Next.

  4. To rename the project, click Next. In the Existing Name column, select the project and provide the name in the New Name column.

  5. Click Finish. On successful project creation, you can see the template project in the Project Explorer pane.

  6. In the Project Explorer view, expand the tibco.bw.sample.Template.TemplateSample project.

  7. Verify your TIBCO Enterprise Message Service connection.

    1. Fully expand the Resources directory.

    2. Double-click JMSConnectionResource.jmsConnResource.

    3. In the Basic Configuration pane, click the Test Connection button to verify the connection.

  8. Fully expand the Processes directory and double-click Process.bwp.

  9. Click Run > Debug Configurations.

  10. At the left of the Debug Configurations wizard, expand BusinessWorks Application and select BWApplication.

  11. In the Applications tab, click the Deselect All button if you have multiple applications. Select the checkbox next to the tibco.bw.sample.Template.TemplateSample.application option.

  12. Click Debug. This runs the sample in the Debug mode.

  13. Click the (Terminate) icon to stop the process.

ResultThe Console displays messages similar to the following:
13:11:42.211 INFO  [bwEngThread:In-Memory Process Worker-1] com.tibco.bw.palette.generalactivities.Log.tibco.bw.sample.Template.TemplateSample.Log - Sending JMS Message

13:11:42.243 INFO [bwEngThread:In-Memory Process Worker-1] com.tibco.bw.palette.generalactivities.Log.tibco.bw.sample.Template.TemplateSample.Log1 - JMS Message sent successfully

13:11:42.337 INFO [bwEngThread:In-Memory Process Worker-2] com.tibco.bw.palette.generalactivities.Log.tibco.bw.sample.Template.TemplateSample.Log2 - Message received JMS Message sent

Understanding the Configuration

The JMS Send Message activity sends the messages with the message style set to Queue. The Get JMS Queue Message activity receives the JMS messages from a Queue.