Hello,
I have deployed some service methods on my tomcat web server using the HttpInvokerServiceExporter remoting configuration and have set up a java swing remote client that accesses my services using the HttpInvokerProxyFactoryBean. Authentication works fine on any web application browser accessed interfaces and I assume the correct way to do authentication on my remote client is with the RemoteAuthenticationManager. This only returns a list of GrantedAuthorities and not the actual Authentication object or Principal object giving me a limited amount of information to work with. Such as not knowing if an account is locked, or expired, credentials expired, session id, etc. After authentication I am using BASIC authentication with my HTTP requests to my services in order to do authorization and re-authentication if needed using an implementation of the CommonsHttpInvokerRequestExecutor that puts the username/password in the HTTP header.
Using this implementation I have no control over sessions from my client, and I can't use concurrent-session-control. It seems as if new sessions are created often and in order to attempt to reduce the number of times authentication hits my LDAP server I have set create-session to always as this seemed to help.
I was hoping for a configuration that allows my remote client to log a user in and to use a session until the session times out, at which time a new session would be created on the next server hit, or until the user logs out. I have read on the forums about some people passing around a ;JSESSIONID in order to gain some control over session handling. But I have also read that ;JSESSIONID's can be reused by the server in some circumstances, which would be bad. Using the ;JSESSIONID also doesn't SEEM like the right way to handle this problem.
So now I'm stuck not knowing how to proceed or if what I have is ok, or as good as I can get out of spring. Any help or guidance, or hints on where to look would be GREATLY appreciated. I have been reading everything I can find and trying to get this worked out now for like 6 months. Starting to feel like a dummy.
![]()



