Follow J2EE Best Practices
HDR is based on Java 2 Enterprise Edition (J2EE). J2EE is an established family of technologies with a substantial amount of published reference information. You should leverage this information when designing your applications.
This provides two important benefits. First, it lets programmers easily compare the performance implications for using remote or local mode in their applications. Second, it can speed development in situations where programmers share an HDR instance. With a shared instance, programmers can develop and test their components in remote mode, letting each work within separate containers, while sharing a common HDR instance running in its own container. It would be better for each developer to have a separate HDR instance, but this is not always possible.
Note:
- Oracle Technology Network, OTN, includes information describing good use of the Application Server, particularly the J2EE Design Pattern Samples
- Sun Microsystems Enterprise BluePrints also provide valuable information
It is particularly important that you minimize the number of round-trips required by your application. HDR provides a number of mechanisms to assist with this, such as the bulk retrieval capabilities of the Rim Service.