Thanks a lot.. i couldnt understand how connection parameters are passed to GroupManager,UserManager. Suppose Connectionparams is a simple pojo that has fields like usename,password,connectionurl. I have a connectionutil to open a connection to db and get users,groups list. So from Groupmanagerfactory,usermanagerfactory , connection parameters should be passed to GroupManager and usermanager which inturn connects to db and get users and group list. But how connection parameter is set in Groupmanagerfactory,usermanagerfactory