2 Replies Latest reply on Sep 17, 2002 4:30 AM by pvamstel

    Session bean holding on to handle

    pvamstel

      Stupid question i think

      I want to use a session bean to hold on to a entity bean

      // As a member of the session bean
      private static StylesheetChooserLocal m_stylesheetChooser = null;

      // do this in the ejbCreate

      StylesheetChooserLocalHome home = EJBUtil.getStylesheetChooserLocalHome();
      StylesheetChooserPK stylesheetChooserPK = new StylesheetChooserPK(m_publisherBinderName);
      StylesheetChooserLocal m_stylesheetChooser = home.findByPrimaryKey(stylesheetChooserPK);


      //And then use it with
      m_stylesheetChooser.someBussinessMethod()

      But it does not seem to work.
      Does anyone have any bright ideas