Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

You need Apache Ant 1.6.2 or higher  to build the samples.

  1. To deploy the sample  service on the server run the following command, from Open the sample folder in your product pack using a command line and go to the <PRODUCT_HOME>\samples\Jaxws-Jaxrs\<JAX-RSWS-Sample-Folder> directory. To determine <JAX-WS-Sample>, see Folder> directory. The folders for Jax-rs samples are listed here: JAX-WS Sample Folder.

  2. To deploy the sample, run the following command:

    Code Block
    ant
  3. Start the application server and access its Management Console at https://localhost:9443/carbon.
  4. On the Main menu, under Services, click List.
    The Deployed Services window will appear.
  5. Click on the respective JAX-RS sample (e.g., async_jaxws).
  6. Execute one of the following commands to run the clientApplication Server and log in to the management console.
  7. You can run the sample in two ways:
    1. Log in to the management console. On the Main menu, under Manage/Applications, click List to open the Running Applications page. The deployed applications will be listed here. 
    2. Using the command line, go the JAX-WS sample directory and execute the following command:

      OSCommand
      On Windowsrun-client.bat
      On Linux/Solarissh
    1. run-client.sh
    1. The results of the sample will show on the command line.

Info

For different options, run:

Code Block
sh run-client.sh -help

...