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.