CustomJMSClient.jws Sample

A web service that demonstrates use of a JMS control defined in a JCX file. CustomJMSClient is a client of the CustomJMSControl.jcx JMS control.

Concepts Demonstrated by this Sample

Location of Sample Files

This sample is located in the jms folder of the WebServices project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\jms\CustomJMSClient.jws

To Run the Sample

  1. Start WebLogic Server in the appropriate domain.
  2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebServices/jms/CustomJMSClient.jws in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to run the sample.
  3. Navigate to the Test Form tab of Test View, if necessary.
  4. Enter values for firstname and lastname and invoke the sendPerson method. The values are packaged in a message and sent to a JMS queue via the JMS control myCustomQ.
  5. Since the JMS control in this simple example is configured to listen to the same queue it sends to, the message immediately arrives and is forwarded to the web service via the onResponse callback. Refresh the browser to see the callback entry appear in the Message Log.
  6. Select log entries in the Message Log to see the message traffic involved in each interaction.

Related Topics

SimpleJMS.jws Sample

Using WebLogic Built-In Controls

JMS Control

Designing Conversational Web Services

Test View