1 Reply Latest reply on Sep 14, 2002 4:35 PM by marc fleury

    SessionContext is not being set for Stateful Session Bean

    Ryan Delano Newbie

      So far as I can tell my transactional stateful session bean is being instantiated with no call to setSessionContext. I've tried various debugging technique, like writing to the log and throwing informative exceptions but the method never seems to get called. In my stateless session bean it worked fine. Does anyone have any idea if this behavior is correct?

      public void setSessionContext(SessionContext ctx) {
      this.ejbContext = ctx;

      System.out.print("SESSION CTX BEING SET\n");

      throw new EJBException("the session context is being set");

      I am running JBoss 3.0.0 with Tomcat 4.0.3. I have no idea what to try next!