Editing session bean descriptors . (Net web server) . . .

Editing session bean descriptors . . . . . . . . . . 130 Editing message-driven bean deployment descriptors. . . . . . . . . . . . . . . . . . . . . 132 Editing module-wide nodes. . . . . . . . . . . . . 133 Editing relationships . . . . . . . . . . . . . . . 133 Relationship role source fields . . . . . . . . 134 CMR field. . . . . . . . . . . . . . . . . . . 134 Adding security roles and method permissions . . . . . . . . . . . . . . . . . . 135 Creating a security role. . . . . . . . . . . . 135 Assigning method permissions . . . . . . . . 135 Adding container transactions . . . . . . . . . . 137 Adding a method to the exclude list . . . . . . . 139 Server-specific pages . . . . . . . . . . . . . . 140 Chapter 14 Using the DataExpress for EJB components 141 The DataExpress EJB components. . . . . . . . . 141 Components for the server . . . . . . . . . . . 142 Components for the client . . . . . . . . . . . . 142 Creating the entity beans . . . . . . . . . . . . . . 142 Creating the server-side session bean . . . . . . . 142 Adding provider and resolver components to the session bean . . . . . . . . . . . . . . 143 Writing the setSessionContext() method . . . . 143 Adding an EJB reference or EJB local reference to the deployment descriptor . . . 144 Adding the providing and resolving methods . . 144 Calling the finder method . . . . . . . . . . . . 145 Building the client side . . . . . . . . . . . . . . . 146 Handling relationships . . . . . . . . . . . . . . . 147 Chapter 15 Developing session beans 149 Types of session beans. . . . . . . . . . . . . . . 149 Stateful session beans. . . . . . . . . . . . . . 149 Stateless session bean . . . . . . . . . . . . . 149 Writing the session bean class . . . . . . . . . . . 150 Implementing the SessionBean interface . . . . 150 Writing the business methods . . . . . . . . . . 151 Adding one or more ejbCreate() methods . . . . 151 How JBuilder can help you create a session bean. . . . . . . . . . . . . . . . . . 151 The lifeof a session bean. . . . . . . . . . . . . . 153 Stateless beans . . . . . . . . . . . . . . . . . 153 Stateful beans . . . . . . . . . . . . . . . . . . 153 The method-ready in transaction state . . . . 154 Chapter 16 Developing entity beans 157 Persistence and entity beans . . . . . . . . . . . . 157 Bean-managed persistence . . . . . . . . . . . 157 Container-managed persistence. . . . . . . . . 158 Primary keys in entity beans . . . . . . . . . . . . 158 Writing the entity bean class . . . . . . . . . . . . 158 Implementing the EntityBean interface . . . . . 159 Declaring and implementing the entity bean methods . . . . . . . . . . . . . . . . . . . . 160 Creating create methods . . . . . . . . . . .160 Creating finder methods. . . . . . . . . . . .161 Writing the business methods. . . . . . . . .162 The life of an entity bean. . . . . . . . . . . . . . .162 The nonexistent state. . . . . . . . . . . . . . .162 The pooled state . . . . . . . . . . . . . . . . .163 The ready state. . . . . . . . . . . . . . . . . .163 Returning to the pooled state. . . . . . . . . . .163 A bank entity bean example . . . . . . . . . . . . .164 The entity bean home interface. . . . . . . . . .164 The entity bean remote interface . . . . . . . . . 165 An entity bean with container-managed persistence . . . . . . . . . . . . . . . . . . .165 An entity bean with bean-managed persistence . . . . . . . . . . . . . . . . . . .166 The primary key class . . . . . . . . . . . . . .170 The deployment descriptor . . . . . . . . . . . .171 Deployment descriptor for an entity bean with bean-managed persistence. . . . 172 Deployment descriptor for an entity bean with container-managed persistence . 172 Chapter 17 Developing message-driven beans 175 How message-driven beans work . . . . . . . . . . 175 JMS message-driven beans . . . . . . . . . . .176 The life of a message-driven bean instance . . . . . 176 Writing a message-driven bean class . . . . . . . . 176 Implementing the MessageDrivenBean interface. . . . . . . . . . . . . . . . . . . . .177 Implementing the message listener interface. . . 177 Writing the message listener method . . . . . 177 How JBuilder can help you create a message-driven bean. . . . . . . . . . . . . .178 Message-driven bean deployment descriptor attributes . . . . . . . . . . . . . . . . . . . . . .179 Chapter 18 Creating the home and remote/local interfaces 181 Creating the home interface . . . . . . . . . . . . .181 The EJBHome interface . . . . . . . . . . . . .182 The LocalHome interface. . . . . . . . . . . . .182 Creating a home or local home interface for a session bean . . . . . . . . . . . . . . .182 create() methods in session beans . . . . . .183 Creating a remote home or local home interface for an entity bean . . . . . . . . . . .183 create() methods for entity beans . . . . . . . 184 Finder methods for entity beans. . . . . . . . 184 Creating the remote or local interface . . . . . . . . 186 The EJBObject and EJBLocalObject interfaces . . . . . . . . . . . . . . . . . . . .186 Chapter 19 Developing enterprise bean clients 189 Locating the home interface . . . . . . . . . . . . .190 Getting the remote/local interface . . . . . . . . . . 190 Session beans . . . . . . . . . . . . . . . . . .190 iii
Thailand is divided into 75 provinces , which are gathered into 5 groups of provinces by location. There are also 2 special governed districts: the capital Bangkok and Pattaya. However Pattaya is still part of Chonburi Province. Some Thai people still count Bangkok as one province, making Thailand a 76-province country.All our thai web hosting accounts have spam filter, virus scanner and frontpage extensions preinstalled. Check more in Thai Web Hosting section.


Leave a Reply