A web service that demonstrates the @common:message-buffer tag to queue high-traffic requests. The sample uses a Timer control to delay sending a response back to the client, simulating waiting for a slow back-end service to respond to requests from this web service. The start method is buffered, allowing clients to continue processing immediately after submitting a request.
Note: In previous releases, the @common:message-buffer tag was known as the @jws:message-buffer tag. This tag is still supported for backward compatibility.
Use of a Timer control
Declaration and use of a client callback
Use of the JwsContext interface
Use of Conversations
This sample is located in the async folder of the WebServices project in the SamplesApp sample application. In the file system the location is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\async\Buffer.jws
To Run the Sample
BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh