try {
ic = new InitialContext();
LoginStateSessionLocalHome loginStateSessionLocalHome = (LoginStateSessionLocalHome) ic
.lookup(LoginStateSessionLocalHome.JNDI_NAME);
loginStateSessionLocal = loginStateSessionLocalHome.create("");
} catch (NamingException e) {
logger.fatal("",e);
} catch (CreateException e) {
logger.fatal("",e);
}
I don’t understand why we need a string parameter in .create(“”). I put “” and that removes the error but I’m not sure what is actually suppose to go there.