If you're using com.caucho.hessian.server.HessianServlet, you can get the
ServletRequest from com.caucho.services.server.ServiceContext.
ServiceContext is a facade around a ThreadLocal that's set in the
HessianServlet's service() method. So anything within that context can access
the ServiceContext to get the ServletRequest.
It's not technically part of the Hessian spec, just a feature of the
HessianServlet implementation.
-- Scott
Ben Hood <[EMAIL PROTECTED]> wrote: Steve,
If I understand you correctly, you are trying to access the servlet
API from with the execution context of the client proxy.
AFAIK this won't work as the service proxy merely exposes the
interface methods of the business definition and encodes/decodes to/
from a stream, which in the case of the proxy *just* so happens to be
the IO stream of an HTTP servlet, but the abstraction that is
presented to the user is a plain old IO stream.
HTH,
Ben
On 24 Dec 2007, at 21:09, Stephen More wrote:
> I have the Hessian Hello World service working. Is there anyway to
> accees the HttpServletRequest from within:
>
> public String hello()
> {
> return _greeting;
> }
>
>
> I need a way to access getRemoteUser()
>
>
>
> -Thanks
> Steve More
>
>
> _______________________________________________
> hessian-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/hessian-interest
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest