1 Reply Latest reply on May 17, 2006 4:55 AM by chaituu

    How to force the Container to call ejbStore();

    chaituu

      ictx = new InitialContext();
      home = (EmployeeEntityHome)ictx.lookup("EmployeeEntityBean");
      remote = (EmployeeEntity)home.findByPrimaryKey(new Long(EmployeeMaster.EmployeeReferenceNo));
      remote.setEmployeeMaster(EmployeeMaster);

      in the entity bean i will set dirtyflag = true;

      when i setEmployeeMaster i want to force the Container to call ejbStore();Is there any options in JBoss?

        • 1. Re: How to force the Container to call ejbStore();
          chaituu

           

          "chaituu" wrote:
          ictx = new InitialContext();
          home = (EmployeeEntityHome)ictx.lookup("EmployeeEntityBean");
          remote = (EmployeeEntity)home.findByPrimaryKey(new Long(EmployeeMaster.EmployeeReferenceNo));
          remote.setEmployeeMaster(EmployeeMaster);

          in the entity bean i will set dirtyflag = true;

          when i setEmployeeMaster i want to force the Container to call ejbStore();Is there any options in JBoss?


          ictx = new InitialContext();
          home = (EmployeeEntityHome)ictx.lookup("EmployeeEntityBean");
          remote = (EmployeeEntity)home.findByPrimaryKey(new Long(EmployeeMaster.EmployeeReferenceNo));
          remote.setEmployeeMaster(EmployeeMaster);

          in the entity bean it will call setEmployeeMaster method where i will set dirtyflag = true;now presently what happened is after all methods are executing only (before transaction is commit..) container is calling ejbStore();

          when i setEmployeeMaster i want to force the Container to call ejbStore();Is there any options in JBoss4?

          for full details check this link