This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d8e6b4d1b Update local-call.md (#2455)
4d8e6b4d1b is described below

commit 4d8e6b4d1bfbc5eb50fcd1fbdf8ac321ea1a9205
Author: MieAh <[email protected]>
AuthorDate: Thu Mar 23 20:05:50 2023 +0800

    Update local-call.md (#2455)
    
    related #11531 apache/dubbo
---
 .../service/local-call.md                           | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git 
a/content/en/docs3-v2/java-sdk/advanced-features-and-usage/service/local-call.md
 
b/content/en/docs3-v2/java-sdk/advanced-features-and-usage/service/local-call.md
index 14aa6fb010..4271b2e8cf 100644
--- 
a/content/en/docs3-v2/java-sdk/advanced-features-and-usage/service/local-call.md
+++ 
b/content/en/docs3-v2/java-sdk/advanced-features-and-usage/service/local-call.md
@@ -47,7 +47,7 @@ When we need to call a remote service, the remote service has 
not been developed
 ```
 
 #### Notice:
-**Dubbo from `2.2.0`, each service will be exposed locally by default, and can 
be referenced locally without any configuration. If you do not want the service 
to be exposed remotely, you only need to set the protocol to injvm in the 
provider. **
+Dubbo from `2.2.0`, each service will be exposed locally by default, and can 
be referenced locally without any configuration. If you do not want the service 
to be exposed remotely, you only need to set the protocol to injvm in the 
provider. **
 
 
 ### Automatic exposure
@@ -56,4 +56,21 @@ Starting with `2.2.0`, every service is exposed locally by 
default. When referen
 
 ```xml
 <dubbo:reference ... scope="remote" />
-```
\ No newline at end of file
+```
+
+### Dynamic configuration call behavior
+
+Starting with' 3.2', the api provided by Dubbo allows users to dynamically 
configure whether a single call is a local call or a remote call, and when it 
is not configured, the local service will be referenced first by default.
+
+**Configure a single call as a remote call.**
+
+```java
+RpcContext.getServiceContext().setLocalInvoke(false);
+```
+
+**Configure a single call as a local call.**
+
+```java
+RpcContext.getServiceContext().setLocalInvoker(true);
+```
+

Reply via email to