What you need to know
Discover what you need to know to make the right configuration and customization decisions for your Tomcat environment.
Obviously, installing Tomcat and getting the sample application up and running is just the beginning. You built the foundation: Now, you must unlock the true power of this simple, free, and effective server software. Besides, you will definitely want to secure your server and learn a few things about setting up a database and troubleshooting it if problems occur.
If you worked through the previous tutorial, your server is up and running. But even in a test environment, you have your limitations. You must set up the test server so that it's identical to the production server. In the original setup, you did the bare minimum to get up and running—installing and setting up the server software environment and implementing the Tomcat Web Application Manager console to deploy the Tomcat sample application. In this tutorial, you get extensive deployment and security information along with administration tips.
Throughout this tutorial, you're free to experiment with advanced middleware administration techniques to ensure the highest level of uptime and stability, which we all know in the corporate world is a top priority! In a production environment, you may have multiple applications being served on the same server accessible by different URLs (virtual hosting), you may have multiple servers in a server farm, many additional deployment needs, and certainly at least basic authentication and SSL set up to protect your application from the outside world. However, have no fear: The remainder of this tutorial is dedicated to empowering you to set up your server for efficiency, security, and future expandability.
Begin by planning the requirements for what the application you're testing will need. Whether this application is an advanced "Hello World" application or some freshly developed masterpiece, you must understand your needs at the development level and how those needs translate into what you must set up at the server level. Or maybe you're an administrator who doesn't care about the code and just needs to set up the server. That's fine, too. Regardless of your role, you'll need answers to the following questions:
- How do you set up database access, resource references, and so on to match the external or internal dependencies of your application?
- How can you secure your Tomcat server while implementing standard authentication and other security measures?
- How do you successfully deploy your application?
- What are some other administrative and troubleshooting tips to ensure continued success?
- What are other tips and resources for setting up your server to run production applications?
These questions drive the remainder of this tutorial. You get step-by-step instructions for how to implement the practical solutions necessary to answer the above questions and take your server and skills to the next level.