The role of the deployment descriptor The types (Free web hosting with ftp)
Tuesday, December 11th, 2007The role of the deployment descriptor The types of information in the deployment descriptor The information in the deployment descriptor can be divided into two basic kinds: Enterprise bean structural information Structural information describes the structure of an enterprise bean and declares an enterprise bean s external dependencies. This information is required. The structural information usually can t be changed because doing so could break the bean s function. Application assembly information Application assembly information describes how the enterprise bean(s) included in the ejb-jar.xml file are composed into a larger application deployment unit. This information is optional. Assembly level information can be changed without breaking the bean s function, although doing so might alter the behavior of an assembled application. Structural information The bean developer must provide the following structural information for each bean in the EJB JAR file: All enterprise beans Enterprise bean s name, a mnemonic used to refer to the bean in the deployment descriptor Enterprise bean s class Enterprise bean s type, either session, entity, or message-driven bean Environment entries, if the bean has configuration parameters Resource factory references EJB references, if an enterprise bean references another enterprise bean Security role references, if an enterprise bean needs to access specific roles Resource environment references, if the bean refers to an external resource Session beans Session bean s home and/or local home interface Session bean s remote and/or local interface Session bean state management type, either stateful or stateless Session bean transaction demarcation type for stateful beans that have synchronization callbacks Entity beans Entity bean s home and/or local home interface Entity bean s remote and/or local interface Entity bean s persistence management type Entity bean s primary key class Container-managed fields for container-managed beans and relationship information for EJB 2.0 components Message-driven beans Message-driven bean s transaction management type Message-driven bean s destination and subscription durability Chapter 12: Deploying enterprise beans 109
Please check java servlet web hosting services, here you will find professional-grade java servlet web hosting with the best prices.