Chapter 3 Creating J2EE Applications for Sybase EAServer


Adding EAServer Support

PowerAMC can generate standard CMP or BMP EJBs, Servlets, JSPs, and application server specific descriptors.

It uses the concept of extended model definition to support additional targets like application server, O/R mapping tool, IDE workspace, etc. An extended model definition (XEM) defines stereotypes, extended attributes, code generation templates, commands, and options. A XEM 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 EAServer extended model definition defines:

Steps To add EAServer support:

  1. Verify that the current model has the object language Java.
  2. Select Model→Extended Model Definitions.
  3. In the List of Extended Model Definitions, click on the Import tool
  4. Select Sybase EAServer 5.x from the list:
  5. Click OK. The XEM is imported into the current model.

 


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