After hours of searching and experimenting I was able to do it like this. 


Make a new service say MyUserService that will implement org.springframework.security.core.userdetails.UserDetailsService and has annotation @Service. UserDetailsService only has one method loadUserByUserName. Implementation of this method will be in MyUserService. It will look like this.

@Service
public class MyUserService implements UserDetailsService {

@Override
public UserDetails loadUserByUsername(String arg0)
        throws UsernameNotFoundException {

    MyUser user=new MyUser();
    /*get details of user and authorities from database whose username is   
            arg0 and place them in user instance */
    return user;
}

}

MyUser is also a new class that implements org.springframework.security.core.userdetails.UserDetails and all its methods are implemented inside MyUser class. It will look like this.

public class MyUser implements UserDetails {
    private static final long serialVersionUID = 1L;
/*All the variables their getter setters that you wish to store in session. And    
   implementation of all the methods of UserDetails go here.*/

 }

Define a bean like this
&lt;bean id="customUserDetailsService" class="org.aurora.timeexpense.service.MyUserService"/&gt;


Where org.aurora.timeexpense.service.MyUserService is the path of my defined service that implements UserDetailsService.

4.And Spring Security Configuration will go like this
 &lt;authentication-manager alias="authenticationManager"&gt;
       &lt;authentication-provider user-service-ref="customUserDetailsService"&gt;
        &lt;/authentication-provider&gt;
   &lt;/authentication-manager&gt;

You are good to go.

Using jdbc-user-service inside user-service-ref
I knew this word a long time ago. Then I lost my memory. childhood and all. mva trauma, head injury.. I was good with words before because I was a songwriter, and I had a feeling that this word was etched in my memory somewhere but was just inaccessible.. knowing this word again could solve a lot of consequent problems in writing/overcome writers block to some degree for me.

So here it is: You know how there is an "interval" between say a "train of events"? "Interval" is the best and only word I could think of -closest to this phenomenon- to describe it.

To be a bit more vivid, imagine a train (locomotive) with 10 carriages, and the third and fourth carriage missing above the wheels. So, as the train moves past you, there is a "gap" that transitions through your visual and sound spectrum yes? What is this phenomenon? "Something" (that) passes by you.. It is a very obvious word, but I just can't figure out.. Even after one of you points it out, I might have to give it a memory marker to make it a long term memory- as my short term memory is still not in very good shape (or maybe it's just in the head).

Further, imagine this "gap" or "interval" of sorts streaking past you like a bullet.. What is this phenomenon? :)
