0 Replies Latest reply on Mar 12, 2009 5:28 AM by gbsendhil

    JBOSS - 5 , EJB 2.0 Stateful Session Bean

      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

      ejb-jar.xml

      <!-- Session Beans -->

      <display-name>Meeting Bean</display-name>
      <ejb-name>MeetingBean</ejb-name>
      com.pbvm.crr.api.ejb.MeetingHome
      com.pbvm.crr.api.ejb.Meeting
      <ejb-class>com.pbvm.crr.impl.ejb.MeetingBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>



      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 .