Programming WebLogic Enterprise JavaBeans

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

appc Reference

 


appc

The appc compiler generates and compiles the classes needed to deploy EJBs and JSPs to WebLogic Server. It also validates the deployment descriptors for compliance with the current specifications at both the individual module level and the application level. The application-level checks include checks between the application-level deployment descriptors and the individual modules as well as validation checks across the modules.

Advantages of Using appc

The appc tool offers the following benefits:

appc Syntax

Use the following syntax to run appc:

prompt>java weblogic.appc [options] <ear, jar, or war file or directory>

Designating Alternative Deployment Descriptors

J2EE allows you to designate an alternative J2EE deployment descriptor for an EJB or Web application module, using the <alt-dd> element in the <module> element of application.xml.

You can use <alt-dd> to specify an alternate deployment descriptor only for the J2EE deployment descriptors, web.xml and ejb-jar.xml. As of WebLogic Server 8.1 SP01, if you specify an alternative deployment descriptor for a module in alt-dd, appc will compile the EJB using the alternative descriptor file.

For more information about the <alt-dd> element, see “module” in Developing Applications with WebLogic Server.

In WebLogic Server 8.1 SP01and later, you can use appc command line options to designate alternative J2EE and WebLogic Server deployment descriptors for an application, as shown below:

appc Options

Table D-1 lists appc command line options.

Table D-1 appc Command Line Options
Option
Description
-advanced
Prints advanced usage options.
-altappdd
Designates an alternative J2EE application deployment descriptor.
-altwlsappdd
Designates an alternative WebLogic Server application deployment descriptor.
-basicClientJar
Does not include deployment descriptors in client JARs generated for EJBs.
-classpath <path>
Selects the classpath to use during compilation.
-compiler <javac>
Selects the Java compiler to use.
-deprecation
Warns about deprecated calls.
-forceGeneration
Forces generation of EJB and JSP classes. Without this flag, the classes will not be regenerated unless a checksum indicates that it is necessary.
-g
Compiles debugging information into a class file.
-help
Prints the standard usage message.
-idl
Generates IDL for EJB remote interfaces.
-idlDirectory <dir>
Specifies the directory where IDL files will be created (default: target directory or JAR)
-idlFactories
Generates factory methods for valuetypes.
-idlMethodSignatures <>
Specifies the method signatures used to trigger IDL code generation.
-idlNoAbstractInterfaces
Does not generate abstract interfaces and methods/attributes that contain them.
-idlNoValueTypes
Does not generate valuetypes and the methods/attributes that contain them.
-idlOrbix
Generates IDL somewhat compatible with Orbix 2000 2.0 C++.
-idlOverwrite
Always overwrites existing IDL files.
-idlVerbose
Displays verbose information for IDL generation.
-idlVisibroker
Generates IDL somewhat compatible with Visibroker 4.5 C++.
-iiop
Generates CORBA stubs for EJBs.
-iiopDirectory <dir>
Specifies the directory where IIOP stub files will be written (default: target directory or JAR)
-J<option>
Passes flags through to Java runtime.
-keepgenerated
Keeps the generated .java files.
-library <file>
Comma-separated list of libraries. Each library may optionally set its name and versions, if not already set in its manifest, with the syntax:
<file>[@name=<string>@libspecver=<version>
@libimplver=<version|string>]
-librarydir <dir>
Registers all files in the specified directory as libraries.
-lineNumbers
Adds line numbers to generated class files to aid in debugging.
-normi
Passes flags through to Symantec's sj.
-nowarn
Compiles without warnings.
-O
Compiles with optimization on.
-output <file>
Specifies an alternate output archive or directory. If not set, the output is placed in the source archive or directory.
-plan <file>
Specifies and optional deployment plan.
-verbose
Compiles with verbose output.
-version
Prints appc version information.

appc and EJBs

weblogic.appc performs the following EJB-related functions:

By default, appc uses javac as a compiler. For faster performance, specify a different compiler (such as Symantec’s sj) using the command-line -compiler flag or via the Administration Console. See Configuring Compiler Options.

For the location of the public version of weblogic-ejb-jar.xml, see weblogic-ejb-jar.xml Deployment Descriptor Reference. For the location of the public version of weblogic-cmp-jar.xml, see weblogic-cmp-jar.xml Deployment Descriptor Reference.


  Back to Top       Previous  Next