passing information to the underlying httpClient
Our application has two tomcat server; TomcatA uses Spring remoting (apache commons HttpClient) to make service/remote calls to tomcatB.
Users connect to tomcatA and that's where there credentials are validated; The current interfaces/api to the remote methods does not provide for any facility for passing any additional parameters/arguments and our requirement is now to pass the user credentials (or at least the username) to tomcatB from tomcatA for logging purposes as to which user invoked the remote method.
Is there anyway that we can pass each user's information when the application invokes the remote method to the underlying commons http client via the spring framework so that it can be retrieved at the server (tomcatB) ?
Any suggestions are appreciated, Many thanks