Chapter 3 Creating J2EE Applications for Sybase EAServer


Building and Deploying EJBs, Servlets and JSPs Using Apache Ant

Steps To build and deploy EJBs, Servlets and JSPs using Ant:

  1. Enable the Ant build script generation.
  2. Generate all the Java code using Language→Generate Java Code without selecting any command task.
  3. Use Ant and the build.xml file to build and deploy.

For more information, see Ant technical document.

EAServer Generation Options

The following options are available:

Generation Option Description
EASHost EAServer host name

Default value: localhost
EASPort EAServer port number

Default value: 9000
EASUser EAServer user name

Default value: jagadmin
EASPassword EAServer password

Default value: [N/A]
EASDeployGeneStubsAndSkels Generate stubs and skeletons

Default value: no
EASDeployOverwrite Overwrite existing package in EAServer

Default value: yes
EASGenerateConfigurationDescriptor Generate configuration descriptor to configure EJBs

Default value: yes
EASGenerateJagantScript Generate jagant script to configure EJBs

Default value: no
EASGenerateQueryMap Generate query mappings. If the query mapping is in EJB-QL, it cannot be generated in EJB deployment descriptor.

Default value: no
EASDeployStrategy EAServer deployment strategy

(full, incremental, optimistic)

Default value: full

 


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