Replies: 5 comments
-
@ronsigal Do you have any suggestions on this? |
Beta Was this translation helpful? Give feedback.
-
Heyyy @liweinan, actually, I've rewritten this part a bit. Now a ServletContext is grabbed in GrpcHttpServletDispatcher.init(), which, I believe, is called with the WAR is deployed. On the other hand, Greet_Server.startContext() is used to grab an HttpServletRequest, which can be used as a delegate for methods like HttpServletRequest.login(). This is still a work in progress: I think I've got the code right, more or less, but I've had some Arquillian trouble with writing tests. I just got the Arquillian part working today, so I hope to have a pull request ready soon. Sorry for the confusion. |
Beta Was this translation helpful? Give feedback.
-
@ronsigal Cool! Looking forward to this :D |
Beta Was this translation helpful? Give feedback.
-
@ronsigal With my understanding, when this gRPC server is started in a standalone way, the gRPC service itself is deployed in But if I do a request to the gRPC server, the servlet context in the backend must be fetched from the Servlet container. In WildFly, this has no problem, because it's an integrated environment: The gRPC subsystem provides the gRPC service, and the servlet container is in the same context, so the The problem is that in standalone environment, the gRPC server and the Servlet server are two independent containers, so how can the servlet and context(other components) be passed across the two independent containers? Currently the gRPC service and the backend Servlet based services are integreated together, which means the gRPC service has to fetch the |
Beta Was this translation helpful? Give feedback.
-
@ronsigal I haven't figured out how to make the whole thing work without a WlildFly environment, I'm not sure whether it's my usage problem. If you know something about this topic, could you please teach me on this? Thanks! :D |
Beta Was this translation helpful? Give feedback.
-
If I use the
main
method ofGreet_Server
to start the gRPC server in standalone way:And do a request to the server, then the
servletContext
is null:Is there any suggestion to use the bridge project in a non-integrated environment (without WildFly)?
Beta Was this translation helpful? Give feedback.
All reactions