Preparing for deployment

Preparing your application for deployment involves cleaning up the code and setting the application parameters for production use.

Cleaning up your code

Just as the tailor shouldn't leave pins in your finished jacket, you should not leave development artifacts in your installation package. Some things that might accidentally slip into the deployment package include the following:

  • Test users and groups
  • Print statements
  • Commented-out code
  • Debug settings in web.xml

Use JDeveloper's automatic reformatting functionality to reformat all of the XML and Java files. For readability and maintainability, all code should have a uniform format. If you are not happy with the default formatting, you can change it by navigating to Tools |

Get Oracle ADF Enterprise Application Development – Made Simple Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.