Apr 3rd, 2007, 11:08 AM
hi I have java client and server software, connected by RMI.
in the client program, I need to log in to server and the server need to keep a session for all the user information, such as username, dept etc.
so my question is, is there anything like httpsession but in RMI? since I am not using browser.
how to create a session in RMI to keep all the logged on user information?
some sample code will be greately appreciated. thanks
Apr 14th, 2007, 03:19 PM
since RMI is not HTTP based and only for invoking a remote method, you could probably send an user id to the server and the server caches some informations about the user or get it from the database.