Chapter 7 Developing Applications with PowerJ and EAServer


Deploying J2EE components

You deploy J2EE components created in PowerJ 3.6 to a J2EE server using JAR, WAR, and EAR archive files. You deploy an EJB by deploying the JAR target that contains it. You deploy a servlet or JSP by deploying the WAR target that contains it. You can deploy a target to Jaguar CTS easily, particularly if you already specified the deployment target information in the component wizard. You can also deploy a target to other J2EE application servers by following the instructions provided in those servers' documentation.

If you specify deployment target information in the component wizard, you can quickly deploy the component to Jaguar whenever you are ready by selecting Deploy from the menu. If you need to define deployment target information, open the Deploy & Run Options dialog box to specify the deployment target.

Note   Combining targets into WAR and EAR files When you create a new J2EE component using a wizard, you can create a new JAR target for an EJB component or a new WAR target for a JSP or servlet component. You also have the option of adding the component to an existing archive file or postponing the decision about the archive file until later. You can also package both WAR and JAR files in an Enterprise Archive (EAR) file for deployment. For more information, see Building Java WAR and EAR archive files.

 


Copyright © 2000 Sybase, Inc. All rights reserved.