tailieunhanh - Design ejb design patterns phần 7

Điều này có thể xảy ra, ví dụ, trong một kịch bản nhóm, nơi mà động cơ máy chủ Web / servlet vào một hộp khác nhau hơn so với các máy chủ EJB, nơi mà các máy chủ JNDI thường là một phần của máy chủ EJB. Có thể yêu cầu interprocess truyền thông (IPC) nếu máy chủ JNDI là trên cùng một hộp. Nếu khách hàng đang chạy trên cùng một hộp như máy chủ EJB nhưng không hoạt động trong cùng một ảo | EJB Development Process 151 What Does It Mean to Administer a J2EE Application Environment There is a frequent need during the development of a J2EE application to administer environments of various types development environments QA environments production environments and the like. The administration of a J2EE application environment consists of a number of steps. In general the assumed starting points are a new virgin machine and a corporate source code control system we assume that you re using a source code control system if you re not then get one immediately . The goal is to get a running configuration of the application onto the machine. The steps are as follows 1. Install Environment Components. This step involves installing third-party products on which the application and its development environment depend. In the process it may involve creating directory structures environment variables and so on. 2. Check out the application s codebase. This involves doing transactions with the corporate source code control system. The transactions need to be parameterized to allow specification of which projects modules to get and which versions. 3. Compile the checked-out codebase. 4. Package the application and code upon which it depends for deployment into the containers in which it runs. For example this probably involves the creation of at least one jar file. 5. Deploy the application into its containers. This may involve configuring the containers for the application. 6. Initialize or update databases. This step involves initializing or updating any persistent stores or other resources the application may depend on. For example this may involve running DDL scripts and loading any data the application might require to operate. 7. Start the application running. 8. Test the installation perhaps using a unit test suite or perhaps even a load test harness. The administration of environments needs to be as reliable repeatable and efficient as possible. Few things are .