0 Replies Latest reply on Mar 12, 2009 5:28 AM by Sendhil G B

    JBOSS - 5 , EJB 2.0 Stateful Session Bean

    Sendhil G B Newbie

      Hi i am currently migrating my application from jboss 3.2.6 to jboss 5.0.0.
      The problem i am facing here is the bean is loosing its data. The same code works well in jboss 3.2.6


      <!-- Session Beans -->

      <display-name>Meeting Bean</display-name>

      The Code

      //Get the Meeting Session Bean Home & Remote Objects.
      try {
      object = utils.getHomeInterfaceApp(ejb/CreateMeetingStateful);
      meetingHome = (MeetingSessionHome) PortableRemoteObject.narrow(object,MeetingSessionHome.class);
      if (null == meetingHome) {
      throw new InvalidParamException("MeetingSession Home Object" + " is NULL");
      Logger.debug("Got the Meeting Home Interface ");
      meetingRemote = meetingHome.create();
      } catch (Exception e) {
      Logger.debug("Exception while MeetingSessionBean Home Interface ");
      throw new CRRException("CRRException ", e);

      //Getting the Preview Value Object from Meeting Stateful Session Bean.
      StateFulBeanManager sManager = new StateFulBeanManager();
      previewVO = sManager.getPreviewVO(objectHandle);

      Here the object is null.

      Should i do anything explicitly in JBOSS- 5 to get the stateful bean .