1 Reply Latest reply on Apr 27, 2005 5:46 PM by mholzner

    how to build complete J2EE application with portlet

    mico

      Hi,

      I want to build a complete application J2EE with Portlet in add to Servlet.
      The file that I mean is the following:

      application.xml
      ejbModule.jar
      warModule.war

      In the warModule.war I want insert for the moment only portlets that references ejbModule's EJBs .

      Suppose that I have build the EJB UserEntity (name, surname, userId);

      What consideration about deployment descriptors there are to have the following code in my UserPortlet


      try {
      UserEntityLocalHome userLocalHome = (UserEntityLocalHome) new InitialContext().lookup ("ejb/User");
      }
      catch (NamingException ne1) {
      ne1.printStackTrace();
      }