In this step, you create a use dependency for the TaxUIController class to the ITaxCalculator and TaxFactory from the development component (DC) tech/tax/calc. This is required to build the TaxUIController class.
You are in the J2EE Developmentperspective in the J2EE DC Explorer view.
To build the TaxUIController, you must create a dependency to component appl/tax/calc.
...
1. Under the node of your DC (...appl~tax~servlet...), open the node DC MetaData → DC Definition.
2. Select the node Used DCs. From the context menu, choose Add Used DC.
3. Select tab page Inactive.
4. In the component tree, choose APPL_dev → example.org_application → application/tax/calculator → DC MetaData → Public Parts → api.
5. Select only the checkboxes Build-Time and Runtime – remove other selections if necessary.
6. Choose Finish.
The TaxUIController is rebuilt and any compilation errors should now disappear.
You are in the J2EE Developmentperspective in the J2EE DC Explorer view.
...
1. Select the node of the Enterprise Application Project (...~appl~taxappl~...) and from the context menu, choose Add Modules.
A dialog window appears.
2. Select the servlet project (...~appl~tax~.servlet..) and choose OK.
You now add the servlet to your Enterprise Application.
Up to now, the Enterprise Application has only one compile time dependency to appl/tax/calc. In order to run this application, you must also create a runtime dependency to the J2EE component application/tax.
You have created the dependencies to the public parts of the other DC.