In the AppModule I add the following information to bind IAccount with 
AccountDAO class.

                ApplicationStateCreator<IAccount> account = 
                        new ApplicationStateCreator<IAccount>(){
                                public IAccount create() {
                                        return new AccountDAO();
                                }
                        };

                configuration.add(IAccount.class, new 
ApplicationStateContribution("session", account));

And in the service package, I create a class e.g. RdbmsSecurity.java in which I 
validate user information (e.g. id/ password). 

        @Inject
        private IAccount accountDAO;

        public Boolean validate(String account, String password){
             ...
             ...
             User user = accountDAO.findUserByAccount(new User("-1", account, 
"", password));

        }

The problem is that it looks like accountDAO is always null. It seems to me 
that the IAccount does not successfully bind with AccountDAO class; however, I 
do not see any error indicating such problem. 

Am I missing any setting?

Thanks for help.




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to