In this exercise, you model the delegate.ejb subpackage.
The delegate EJB implementation package contains a buiness delegate that connects to the EJB component layer. The delegate.ejb subpackage contains the classes in the following table:
Class name | Description |
---|---|
PiggyBankEJBDelegateFactory | This factory class creates an instance of the PiggyBankEJBDelegateImpl class. |
PiggyBankEJBDelegateImpl | This class contains the implementation of the business delegate. This class is the wrapper for the EJB session facade. |
The PiggyBankEJBDelegateFactory and PiggyBankEJBDelegateImpl classes, along with the BusinessDelegateFactory class, implement the delegate interfaces that you created in Exercise 3.5.
The business delegate classes connect to the EJB component layer.
You have created the PiggyBankEJBDelegateImpl class is a wrapper for the EJB component layer. Your diagram should look similar to the following figure:
The business delegate classes in the delegate.ejb subpackage implement the delegate interfaces that are defined in the framework subpackage.
You have modeled the PiggyBank business delegate component layer. Your diagram should look similar to the following figure:
You have modeled the final classes of the PiggyBank design model. In exercise 3.8 you mark up the model by applying a profile to the EJB subcomponent layer. To continue, proceed to Exercise 3.8: Applying a profile to the design model.