Business Delegate

Brief Description

In distributed applications, lookup and exception handling for remote business components can be complex. When applications use business components directly, application code must change to reflect changes in business component APIs.

These problems can be solved by introducing an intermediate class called a business delegate, which decouples business components from the code that uses them. The Business Delegate pattern manages the complexity of distributed component lookup and exception handling, and may adapt the business component interface to a simpler interface for use by views.

Detailed Description

See the Core J2EETM Patterns

Detailed Example

Sample application business delegate class AdminRequestBD handles distributed lookup and catches and adapts exceptions in the sample application order processing center (OPC).

Copyright © 2002 Sun Microsystems, Inc. All Rights Reserved.