Results 1 to 2 of 2

Thread: RMI Session

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    Default RMI Session

    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

    david

  2. #2
    Join Date
    Apr 2007
    Location
    Cologne, Germany
    Posts
    10

    Default

    Hey,

    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.

    Greets.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •