Is it possible to have this?
And how can this be achieved?
The motivation – I want one secured (SSL) service for user-provisioning (passwords…), and one non-secured.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ashwin Desikan answered my question on http://code.google.com/p/google-web-toolkit/
Quote:
Gilad,
You can have multiple RequestFactoryServlets. check out the example below.
If you look at it closely, I have a different url mapping. You will have
to define individual RequestTransports to be associated with the
url-mapping in your client.
Also, you will have to controll operations exposed by each of the
requestFactories in your client. You can always have a base factory
where you can provide common functions and move only the secured ones to
SecuredRequestFactory
What I would recommend with this approach is, before using the
RequestFactories have a check in your code to determine if a user is
loggedIn. If logged in use the secure servlet for all requests.
example ;
*web.xml *
client
regards
Ashwin