Rate This Document
Findability
Accuracy
Completeness
Readability

JAR Package Running Examples

  1. Go to the directory where the dubbo-samples-api.jar package is located.
    1
    cd /home/dubbo-samples/dubbo-samples-api/target
    
  2. Start the provider.
    1
    java -cp dubbo-samples-api.jar org.apache.dubbo.samples.provider.Application
    

    If dubbo service started is displayed, the provider is started successfully.

  3. Open a new window and go to the directory where the dubbo-samples-api.jar package is stored.
    1
    cd /home/dubbo-samples/dubbo-samples-api/target
    
  4. Start the consumer.
    1
    java -cp dubbo-samples-api.jar org.apache.dubbo.samples.client.Application
    

    If hi, dubbo is displayed, the consumer is started successfully.

    To stop the provider service, switch to the provider window and press Ctrl+C.