1. A method for running one or more original Java beans in an EJB environment based on control from an external program, comprising the steps of: defining a single generic EJB and installing said single generic EJB in an EJB container; generating EJB support code for each of said one or more original Java beans; and executing said EJB support code to drive said generic EJB to perform the functions of said one or more original Java beans in said EJB environment.