1. An apparatus for assembling EJB components, comprising: a composite palette for browsing and managing the EJB components; an architecture diagram editor module for dragging and dropping the EJB components shown in the composite palette or using the component and connector icons in order to visually build an architecture for a composite component according to the C2 style; a component property editor module for setting the properties of EJB components in an architecture, and describing a component specification which has information about interfaces and behaviors of each EJB component; and a glue code and composite EJB generator module for automatically generating composite EJB component code and glue code.