Chapter 5 Deploying Web Applications in Apache Tomcat


Adding Apache Tomcat Support

You can use the Ant build script to compile, package and deploy to Tomcat.

PowerDesigner can also use the Ant build script to deploy to Tomcat.

For more details about the Ant build script generation, see the Ant chapter.

PowerDesigner uses extended model definitions to support additional targets like an application server, O/R mapping tool, IDE workspace, etc. An extended model definition (XEM) defines stereotypes, extended attributes, code generation templates, commands, and options. It can add new code templates or override the templates of an object language (Java, XML, and so on); it can also be independent from the object language. The code generation templates use code templates and macros.

The Tomcat XEM defines:

Steps To add Tomcat support:

  1. Verify that the current model has the object language Java.
  2. Select Model→Extended Model Definitions.
  3. Click on the Import tool in the List of Extended Model Definitions
  4. Select Apache Tomcat 5 from the list
  5. Click OK. The XEM is imported into the current model

 


Copyright (C) 2006. Sybase Inc. All rights reserved.