Greetings,

       I am trying to build a webapp which uses apache shiro and google
guice.   I have been following a [1] tutorial, but cannot seem to get code
to compile with the realm I need to use.  In particular, I am not sure what
to supply for the following sections of code (which has been edited for
readability)...

*file:BigBankShiroWebModule.java*
    public class BigBankShiroWebModule extends ShiroWebModule {
        protected void configureShiroWeb() {
            bindRealm().toConstructor( IniRealm.class.getConstructor(
Ini.class ) );
        }
        Ini loadShiroIni() {
            return Ini.fromResourcePath( "classpath:shiro.ini" );
        }

I have tried to replace *IniRealm *with *IsisLdapRealm *or
*JndiLdapRealm *which
seems to work to a degree, but they wont load my *shiro.ini* file since
those realms don't implement the *Ini *class.  Since the realm I need to
use does not support ini files, how can I configure the realm?

Help is appreciated more than you know!
- John


*Web link appendix*   [1] Add an example for using Guice integration.
   https://issues.apache.org/jira/browse/SHIRO-320

Reply via email to