In this exercise you will add a JMS Connection resource and a JMS channel with one destination. You will configure the project to use this destination instead of the Rendezvous destination used in the project design tutorial (Chapter 2, Project Design Tutorial).Load Balancing You can configure your project to enable load balancing of messages in a queue among active members of an agent group. Load balancing can’t be done using the Rendezvous channel already configured for the Fraud Detection project because it broadcasts messages, and all the agents would pick up the same messages. Instead you must use point to point messaging using queues. When an agent retrieves a message from the queue it sends back an acknowledgement to the server. That message then leaves the queue. Each message is processed by only one of the agents.Shared Resources In Task B, Create a Rendezvous Channel and Destination, you configured a Rendezvous channel using properties. To demonstrate another configuration method, you will configure the JMS channel using a shared resource. Generally, you would use a shared resource if you wanted to reuse the resource in different places in your project.For more on JMS channels, read Chapter 2, Working With Channels and Destinations in TIBCO BusinessEvents User’s Guide.Start the JMS ServerStart > All Programs > TIBCO > TIBCO EMS VersionNo > Start EMS ServerCreate JMS Connection
2.
3. From the Project menu, select Open Existing Project and open the FraudDetection project you configured using Chapter 2, Project Design Tutorial.If you don’t want to configure the project yourself, you can use the configured example, located here:
4. Select Project > Save As and save the project as FDCache. The project name becomes a directory name in the location you specify. All files are copied to this directory.
5. In the project root, create a folder called Shared. This folder is not required but is just one way to organize your project.
6. Open the Shared folder and in the design panel, right-click and select Add Resource > JMS > JMS Connection.
7. Name the connection JMS and click Apply. No other configuration is required as default values are used in this tutorial.
8. Click Test Connection. You see a message that the connection is successful:
9. If the connection test fails, check that the Enterprise Message Service server is running. When the connection test is successful, click OK.
1. Open the Channels folder, right-click in the design panel, and select Add Resource > BusinessEvents Workbench > Channel.
2. In the Configuration tab, name the channel JMS, choose the JMS driver, and from the Method of Configuration drop-down list, select Resource.
3. Click the browse button () and select the JMS Connection resource you configured in Task B. Then click Apply.
4. Open the JMS channel, right-click in the design panel, and select Add Resource > BusinessEvents Workbench > Destination.
5. Name the destination DebitTransactionJMS.
7. In the (Queue) Name field, type DEBITTXN. Click Apply. The destination listens to a queue with this name.
8. Now you will change the default destination for the Debit event from the Rendezvous destination to the JMS destination. See Task D, Validate the Project and Set a Default Event for a Destination if you want a reminder about the purpose of default events.
2. In the Default Destination field, click the browse button () and select /Channels/JMS.channel/DebitTransactionJMS, then click Apply and Save the project.
Copyright © TIBCO Software Inc. All Rights Reserved.