You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "xorange1997 (via GitHub)" <gi...@apache.org> on 2023/05/19 01:05:50 UTC

[GitHub] [dubbo] xorange1997 opened a new issue, #12348: 远程调用HttpServlet相关问题

xorange1997 opened a new issue, #12348:
URL: https://github.com/apache/dubbo/issues/12348

   您好,目前有个需求就是我请求通过servlet进入到前置服务,然后在前置服务里面调用dubbo服务提供方,我想知道,在服务提供方我能通过RpcContext.getContext().getRequest获得HttpServlet信息吗?因为这是一个上传文件的请求,我需要获取servlet的流,然后进行写操作。
   <img width="1059" alt="image" src="https://github.com/apache/dubbo/assets/38392442/2ab7f367-6283-4595-be7a-3e83e193b471">
   
   


-- 
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.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


[GitHub] [dubbo] AlbumenJ commented on issue #12348: 远程调用HttpServlet相关问题

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12348:
URL: https://github.com/apache/dubbo/issues/12348#issuecomment-1554196277

   serlvet 流有很多属性是不能序列化的,建议是在请求之前转换成自己的 dto,然后通过 RpcContext 传递


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #12348: 远程调用HttpServlet相关问题

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12348:
URL: https://github.com/apache/dubbo/issues/12348#issuecomment-1556110694

   > > serlvet 流有很多属性是不能序列化的,建议是在请求之前转换成自己的 dto,然后通过 RpcContext 传递
   > 
   > 但是对于传文件来说这样感觉不大友好,使用dubbo的rest能不能达到这种效果勒
   
   通过 RPC 传递文件本身就不是一个最佳实践,建议在 RPC 中仅传递文件标识符。


-- 
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


Re: [I] 远程调用HttpServlet相关问题 [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #12348: 远程调用HttpServlet相关问题
URL: https://github.com/apache/dubbo/issues/12348


-- 
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


[GitHub] [dubbo] xorange1997 commented on issue #12348: 远程调用HttpServlet相关问题

Posted by "xorange1997 (via GitHub)" <gi...@apache.org>.
xorange1997 commented on issue #12348:
URL: https://github.com/apache/dubbo/issues/12348#issuecomment-1554266001

   > serlvet 流有很多属性是不能序列化的,建议是在请求之前转换成自己的 dto,然后通过 RpcContext 传递
   
   但是对于传文件来说这样感觉不大友好,使用dubbo的rest能不能达到这种效果勒


-- 
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


Re: [I] 远程调用HttpServlet相关问题 [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12348:
URL: https://github.com/apache/dubbo/issues/12348#issuecomment-1987520413

   No news is good news. Please feel free to create a new issue if you have any question.
   
   


-- 
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