Implementing a JMS Service that Returns Information Based on Zip Codes
The JMS service returns information about a city given a zip code. The JMS service also provides the distance between two cities as defined by their zip codes.
Before you begin
- TIBCO Enterprise Message Service must be running.
- Ensure the queues
jmsbasic.queue
andreply.queue
have been created.
Testing Locally
- Procedure
- In the samples directory, select select Accessing Samples. and double-click tibco.bwce.sample.binding.soap.jms.ZipCodeLookup. For more information, see
- From the Project Explorer expand the tibco.bwce.sample.binding.soap.jms.ZipCodeLookup project.
- Set the default ApplicationProfile to match the OS you are running on. For more information, see Setting the Default Application Profile.
- Expand the Processes directory and double-click ZipInfoService.bwp.
- Verify your TIBCO Enterprise Message Service connection.
- Expand the Resources directory.
- Double-click
JMSConnectionResource.jmsConnResource.
Click the Test Connection button to verify the connection.
- Click
- Click
- From the Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click the Deselect All button if you have multiple applications.
- Select the checkbox next to tibco.bwce.sample.binding.soap.jms.ZipCodeLookup.application.
- Click
Debug.
The sample now runs in the debug mode.
- Click the Terminate
icon when you have completed using the listed operations.
Result
- For the getCityInfo service, information corresponding to the zip code defined in the zip field is returned. The default value is 61801, which returns information about Urbana, IL.
- For the getCityDistance service, information corresponding to the distance between two zip codes is returned. The default values are 61801 for Urbana IL and 61820 for Champaign IL.
Subtopics