You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/14 09:43:10 UTC

[GitHub] [dubbo] pandaapo commented on pull request #10931: Add payload config for

pandaapo commented on PR #10931:
URL: https://github.com/apache/dubbo/pull/10931#issuecomment-1313383606

   > Is it work with two services with different payload and have the same cllient?
   
   Yes. I used the `dubbo-demo-xml-provider`, and configured 4 services with 4 different payload values.
   ```
       <dubbo:service delay="5000" interface="org.apache.dubbo.demo.DemoService" timeout="3000" ref="demoService" registry="registry1" protocol="dubbo" payload="1"/>
       <dubbo:service delay="5000" version="1.0.0" group="greeting" timeout="5000" interface="org.apache.dubbo.demo.GreetingService"
                      ref="greetingService" protocol="dubbo" payload="2"/>
       <dubbo:service delay="5000" version="1.0.0" timeout="5000" interface="org.apache.dubbo.demo.RestDemoService"
                      ref="restDemoService" protocol="rest" payload="3"/>
       <dubbo:service delay="5000" version="1.0.0" timeout="5000" interface="org.apache.dubbo.demo.TripleService"
                      ref="tripleService" protocol="tri" payload="4"/>
   ```
   This was the startup log.
   ![无标题](https://user-images.githubusercontent.com/35672972/201627243-2f11bf55-d2df-4c15-8416-39c268f868ed.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org