Results 1 to 5 of 5

Thread: Session Management between thick client and server

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    singapore
    Posts
    11

    Default Session Management between thick client and server

    My application is swings based application

    This is my requiement.
    User run the client application, key-in userId and password and click submit.
    at the server-side i check whether userId, password is valid then I want to put userId into session.
    when user tries for another operation then at the server side i will first check whether session userId is not null and perform the action.

    How can I maintain session Management at serverside in spring framework...

    Any help is appreciated..
    Pass me any references.

    Thank You,
    Regards,
    Kotesh.

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Are you trying to integrate with a (Http?)Session solely for security purposes?

    If so, just use the integration already provided in Spring Rich. It authenticates a user's username and password by sending a request across (via a remoting proxy factory) to a server-side Acegi Security processing bean. If the username and password is valid, back goes the list of GrantedAuthority[]s to the Spring Rich client. Spring Rich then sets a local ContextHolder (which is a ThreadLocal object) containing the validated username, password and GrantedAuthority[]s. It also publishes a LoginEvent which is consumed by the org.springframework.richclient.security.RemotingSe curityConfigurer, which sets the username and password on each of application context-defined remoting proxy factories. This then means those remoting proxy factories will present the username and password via BASIC authentication, and again on the server-side Acegi Security handles the automatic integration.

    Check out the Petclinic Rich Client sample, which uses this mechanism in its client-server version. Or if you have other requirements, please feel free to elaborate.

  3. #3
    Join Date
    Apr 2006
    Posts
    2

    Unhappy Is simply to do that with Eclipse RCP?

    I use the Eclipse Rich Client and i want to do the same with my Tomcat Server, keep a threadlocal with the credetinals of the current user for accesing the httpinvoker exposed services.

    Before look at the Spring Rich Client code and implement it, i ask if anybody knows some similar (i don't want re-invent the weel).

    Thank in advance

    Tońo.
    www.jcode.cl

  4. #4
    Join Date
    Aug 2005
    Location
    Austin, TX
    Posts
    425

    Default

    You'd probably do better by posting your question on the Eclipse RCP forums.

    Larry.

  5. #5
    Join Date
    Jan 2006
    Location
    Vilnius, Lithuania
    Posts
    68

    Default Controlling Spring RCP client concurrent sessions?

    Hello,

    I have a Spring RCP client app communicating with POJO services using Spring HttpInvoker. Spring RCP integration with Acegi works nice for me. Now I would like to have some kind of session tracking for controlling concurrent sessions. Specifically, I want to intercept repeated login attempts and provide a choice of either cancelling a login or terminating the previous session. How could I achieve this? Any guidelines would be greatly appreciated (what to extend/configure, where to look, etc.).

    Andrius

Similar Threads

  1. Replies: 8
    Last Post: Oct 19th, 2012, 02:49 AM
  2. HttpInvoker server and client deployment
    By silly_me in forum Remoting
    Replies: 1
    Last Post: Aug 24th, 2005, 08:37 PM
  3. Replies: 1
    Last Post: Aug 23rd, 2005, 09:24 AM
  4. Client - Server And Spring Framework
    By kotesh in forum JMS
    Replies: 5
    Last Post: Apr 8th, 2005, 03:15 PM
  5. Session Management in Spring?
    By spring04 in forum Web
    Replies: 3
    Last Post: Dec 6th, 2004, 02:48 PM

Posting Permissions

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