Using the HTTP Persistent Connection Feature
The PersistentConnectionClientProcess sends five simultaneous HTTP requests. Each SendHttpRequest activity in the PersistentConnectionClientProcess is configured with a ClientPCMConnection shared resource. The HttpReceiver in ServerProcess listens on connection specified by ServerConnection shared resource.
- Procedure
- In the samples directory, select and double-click tibco.bw.sample.palette.http.PersistentConnection. For more information, see Accessing Samples .
- In Project Explorer expand the tibco.bw.sample.palette.http.PersistentConnection project.
- Fully expand the Processes directory and double-click PersistentConnectionClientProcess.bwp.
- Click .
- At the left hand tree of 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.bw.sample.palette.http.PersistentConnection.application.
- Click
Debug.
This runs the sample in Debug mode.
- Click the
Terminate
icon to stop the process.
is similar to the following:
Response received for Request2 at Wed, 11 Jun 2014 20:56:06 GMT
Response received for Request1 at Wed, 11 Jun 2014 20:56:06 GMT
Response received for Request4 at Wed, 11 Jun 2014 20:56:16 GMT
Response received for Request3 at Wed, 11 Jun 2014 20:56:16 GMT
Response received for Request3 at Wed, 11 Jun 2014 20:56:26 GMT