Shared web hosting - Improving performance in large projects with many relationships.
Improving performance in large projects with many relationships. . . . . . . . . . . . 57 Removing a relationship . . . . . . . . . . . . 57 Adding a finder method . . . . . . . . . . . . . . 58 Adding an ejbSelect method . . . . . . . . . . . 59 Adding a home business method . . . . . . . . . 60 Creating a schema from entity beans . . . . . . . . 60 Exporting a data source . . . . . . . . . . . . . . . 60 Creating entity beans with bean-managed persistence . . . . . . . . . . . . . . . . . . . . . 61 Chapter 7 Creating session facades for entity beans 63 Using the DTO and Session Facade wizard . . . . . 64 Examining the generated classes . . . . . . . . . . 68 Chapter 8 Creating beans with the Enterprise JavaBean 1.x wizard 69 EJB modules . . . . . . . . . . . . . . . . . . . . . 69 Creating an EJB module from existing deployment descriptors . . . . . . . . . . . . . 71 Creating an enterprise bean . . . . . . . . . . . . . 72 Creating a session bean . . . . . . . . . . . . . 73 Creating an entity bean . . . . . . . . . . . . . . 74 Adding the business logic to your bean . . . . . . 74 Exposing business methods through the remote interface. . . . . . . . . . . . . . . . . 76 Generating the bean class from a remote interface. . . . . . . . . . . . . . . . . . . . . . . 77 Creating the home and remote interfaces for an existing bean. . . . . . . . . . . . . . . . . . . 78 Chapter 9 Creating EJB 1.x entity beans from an existing database table 81 Creating entity beans with the EJB 1.x Entity Bean Modeler.. . . . . . . . . . . . . . . . . . . 81 Chapter 10 Compiling enterprise beans and creating a deployment module 87 Compiling the bean. . . . . . . . . . . . . . . . . . 87 Changing build properties for a deployment module . . . . . . . . . . . . . . . 87 Changing the server-specific build properties for an EJB module. . . . . . . . . . . . . . . . 88 Compiling . . . . . . . . . . . . . . . . . . . . . 88 The generated JAR file. . . . . . . . . . . . . . . . 88 What an EJB JAR contains . . . . . . . . . . . . 89 Editing deployment descriptors. . . . . . . . . . . . 89 Chapter 11 Running and testing an enterprise bean 91 Testing your bean. . . . . . . . . . . . . . . . . . . 91 Choosing the type of test client . . . . . . . . . .92 Working with test client applications. . . . . . . . . .92 Creating a test client application . . . . . . . . . .92 Using the test client application . . . . . . . . . .95 Using your test client application to test your enterprise bean. . . . . . . . . . . . . . . . . .96 Creating a Server runtime configuration . . . .96 Running your EJB test client application . . . .97 Working with JUnit test cases. . . . . . . . . . . . .98 Creating a JUnit test case . . . . . . . . . . . . .98 Creating a JUnit test case using the EJB Test Client wizard . . . . . . . . . . . .98 Running your JUnit test case. . . . . . . . . . . 100 Working with Cactus JUnit test cases . . . . . . . . 100 Creating a Cactus JUnit test case . . . . . . . . 100 Configuring your project for testing an EJB with Cactus. . . . . . . . . . . . . . . 101 Creating a Cactus JUnit test case using the EJB Test Client wizard . . . . . . . . . 103 Running your Cactus JUnit test case . . . . . . 104 Chapter 12 Deploying enterprise beans 107 Creating a deployment descriptor file . . . . . . . . 108 The role of the deployment descriptor. . . . . . . . 108 The types of information in the deployment descriptor. . . . . . . . . . . . . . . . . . . . 109 Structural information. . . . . . . . . . . . . 109 Application assembly information . . . . . . . 110 Security . . . . . . . . . . . . . . . . . . . . 110 Application server-specific properties. . . . . 110 Creating an application module . . . . . . . . . . . 111 Deploying to an application server . . . . . . . . . 112 Deploying to Borland Enterprise Server . . . . . 112 Deploying to non-Borland servers . . . . . . . . 113 Setting deployment options with the Properties dialog box. . . . . . . . . . . . . . 114 Hot deploying to an application server . . . . . . 115 Chapter 13 Editing EJB deployment descriptors 117 Viewing EJB deployment descriptors . . . . . . . . 117 Bean-specific nodes . . . . . . . . . . . . . . . 118 Module-wide nodes . . . . . . . . . . . . . . . 119 Viewing XML code of module descriptors . . . . 119 Viewing the EJB module s directory structure . . 120 Adding to and deleting from a deployment descriptor . . . . . . . . . . . . . . . . . . . . . 120 Viewing errors in descriptors . . . . . . . . . . . . 122 Editing entity bean descriptors . . . . . . . . . . . 122 EJB Reference page. . . . . . . . . . . . . . . 124 EJB Local Reference page. . . . . . . . . . . . 124 Environment Entry page . . . . . . . . . . . . . 125 Resource Environment Reference page . . . . . 126 Resource Reference page . . . . . . . . . . . . 127 Security Identity page . . . . . . . . . . . . . . 128 Security Role Reference page . . . . . . . . . . 128 CMP Field page . . . . . . . . . . . . . . . . . 129 EJB Query page . . . . . . . . . . . . . . . . . 130 ii
Our window web hosting plans are bursting with features and FREE tools, at the very small rate. Sign up today window web hosting.