Does anybody have an idea how to maintain Session in RMI. and spring framework support RMI Session Manage ?
Thanks in advance for any help/Web Site Refernce etc.
Does anybody have an idea how to maintain Session in RMI. and spring framework support RMI Session Manage ?
Thanks in advance for any help/Web Site Refernce etc.
I've been developing a Spring J2SE desktop client-server application (rich client), using PostgreSQL/Hibernate for DAOs, RMI for services, Swing for client GUI.Originally Posted by greateWei
We have faced the same problem: since RMI is stateless, how to provide session management with RMI?
The answer is acegi: acegi allows you to have the client provide a SecurityContext and automatically propagates it to the server with every RMI call.
This would allow you to authenticate and recognise the calling client, and build session management on top of this.
As far as I know ACEGI does not give automatic session management using RMI, but you can easily make it up once you can recognise the calling client through the ACEGI security context.
Hope this makes sense for you.