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 2019/03/09 13:05:38 UTC

[GitHub] [incubator-dubbo-samples] lizanle521 opened a new issue #65: dubbo-samples-async-original-future 模块的AsyncConsumer从RpcContext获取不到服务器写会的attachments

lizanle521 opened a new issue #65: dubbo-samples-async-original-future 模块的AsyncConsumer从RpcContext获取不到服务器写会的attachments
URL: https://github.com/apache/incubator-dubbo-samples/issues/65
 
 
    RpcContext savedServerContext = RpcContext.getServerContext();
           future.whenComplete((v, t) -> {
               System.out.println(savedServerContext.getAttachment("server-key1"));
               if (t != null) {
                   t.printStackTrace();
               } else {
                   System.out.println("AsyncConsumer: Response: " + v);
               }
           });
   savedServerContext.getAttachment("server-key1")返回null

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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