EJB 2.1 requires noting down more supporting codes as compared to the EJB 3.0 that reduces the number of supporting codes. The DTD in the EJB 2.1 is replaced by the modified XML Schema in the EJB 3.0. Java codes are easily generated by the improved applications in the EJB 3.0 unlike in the EJB3.