When deploying an application that uses Hibernate, you will most likely have to perform configuration steps to complete the deployment. This is because, in various contexts, the application server or the container manages the resources that are needed for runtime. In this section, we will discuss some of those topics, and later we will see how to complete these steps in the EJB and Spring contexts, as they are different.
Note
Throughout this book, and particularly in this chapter, the terms context and container are mostly used interchangeably. These terms are used to refer to EJB, Servlet, and Spring containers. The term application server refers to the runtime platform for your Java enterprise application, for example, JBoss or WebLogic.