0 Replies Latest reply on Aug 24, 2009 9:51 AM by rahulsoni

    Local object is returned as NULL

      The problem is "LocalHome object is getting created but when Local object is being created, the local object is returned as NULL"

      Sample Code is as follows

      SubFleetAlignmentEntityLocalHome objSubFleetAlignmentEntityLocalHome = SubFleetAlignmentEntityLocalHome)getEntityLocalEJBRef(BMSApplicationConstants.FLEET_ALIGNMENT_ENTITY_JNDI);

      SubFleetAlignmentEntityLocal objSubFleetAlignmentEntityLocal= (SubFleetAlignmentEntityLocal)objSubFleetAlignmentEntityLocalHome.create();

      objSubFleetAlignmentEntityLocal.align(objSubFleetAlignmentDTO,con); // this line throws null pointer as objSubFleetAlignmentEntityLocal is null.

      Thanks
      Rahul Soni