concept environment in category seam

appears as: n environment, environment, environments
Seam in Action

This is an excerpt from Manning's book Seam in Action.

The area of development that has routinely slowed down Java EE developers most often is testing. Even if you’ve never written a test, you’re still testing. You test your code every time you redeploy your application or restart the application server to view the result of your latest modifications. It’s just slow and boring to do it that way. These days, testing is an integral part of any application development, and no framework is complete without an environment that allows you to test “outside of the container.” Seam once again demonstrates its simplicity by exposing a single test class that can handle all of the integration testing needs in a Seam-powered application.

To summarize your options, you can use the deploy command to deploy a package archive or you can use the explode command to deploy an exploded archive. The undeploy and unexplode commands serve as their complements by removing the archive from the server. That covers the deployment life cycle to a single environment. seam-gen sets up your project with additional deployment profiles, which allow you to tune the archive based on environment, possibly even deploying it to a different server instance. Let’s take one more tangent to learn about deployment profiles before we move on to starting JBoss AS.

Table 2.4 itemizes the files that are selected according to the active profile, indicating whether the file is used in the case of the test profile. These files contain settings and configurations that you have control over between environments. You can introduce your own profile, such as qa, by creating each of the files listed in table 2.4. When naming the file, replace the token %PROFILE% with the name of the profile. For instance, the build properties file for the qa profile would be build-qa.properties.