Re: RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-18 Thread Jens
I am not really familiar with the spring layer and its IUserService interface but as you send the user id in the http header, couldn't you just put that user id into the user's session and each server method who needs the user id can then retrieve it from the session? -- You received this

Re: RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-18 Thread Kathiravan Tamilvanan
Requestcontext method signatures should match with the service layer method signature by default. So when we call it from the client code it uses the server method with the same signature. I don't know how to intercept this call and add the user ID . -- You received this message because you

Re: RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-18 Thread Thomas Broyer
You can intercept it with a ServiceLayerDecorator, but it'd wtill fail, because the RequestFactoryInterfaceValidator will throw when validating the mismatched method. You could add a new method (but not an overload!) in your service though, and then route the method call to that method. But

Re: RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-18 Thread Kathiravan Tamilvanan
Thomas, can you provide some code snippet on how you have done using Guice? We are not using Spring MVC in our project. I dont know how would i be able to inject the user id from the Servlet to the spring layer. I can access the spring application context from the servlet but not vice versa.

RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-17 Thread Kathiravan Tamilvanan
In our application we have implemented the following 1. User security by extending the RequestFactoryServlet and *overriding the doPost* method for validating the user session. 2. If the user is logged in the request is proceeded further 3. If the user is not logged in Error is