facebook

getting Stateful session bean context 2.1

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265836 Reply

    maximuszen
    Member
                        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.

    #265901 Reply

    Riyad Kalla
    Member

    How did you generate the local home? When you do it using Xdoclet in MyEclipse, my create method is generated without any arguments.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: getting Stateful session bean context 2.1

You must be logged in to post in the forum log in