Generates stubs for a package or component.
gen_stubs [ connect-args | local-args ] [-javastubs true|false] [-cppstubs true|false] [-javastubtype CORBA|EJB|Jaguar1.1] [-javastubjarname filename] [-javastubcodebase path] [-cppstubcodebase path] [-compilejavastubs true|false] [-pseudostubs true|false] [-jdkversion 1.1|1.2] entity
<jag_gen_stubs [ javastubs="true|false" ] [ cppstubs="true|false" ] [ javastubtype="CORBA|EJB|Jaguar1.1" ] [ javastubjarname="filename" ] [ javastubcodebase="path" ] [ cppstudcodebase="path" ] [ pseudostubs="true|false" ] [ compilejavastubs="true|false" ] [ jdkversion="1.1|1.2" ] entity=”entity” />
Option |
Description |
Default |
Required |
---|---|---|---|
connect-args | local-args |
Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”. |
- |
Yes |
|
Indicates whether to generate Java stubs. |
true |
No |
|
Indicates whether to generate C++ stubs. |
true |
No |
|
The type of Java stubs used. Options are:
|
CORBA |
No |
|
If this flag is used, the generated Java stubs are placed in a JAR file with the specified file name on the server host. The full path for the file name must be specified. |
- |
No |
|
The code base for Java stubs, on the server host. |
$JAGUAR/html/classes |
No |
|
The code base for C++ stubs, on the server host. |
$JAGUAR/include |
No |
|
Indicates whether to compile Java stubs. |
true |
No |
|
Indicates whether to generate direct-access stubs for C++ and Java/CORBA pseudocomponents. Use this option if the target components run as EAServer pseudocomponents. |
false |
No |
|
Indicates the JDK version to use for compiling Java skeletons. Options are:
|
1.2 |
No |
entity |
The name of the entity for which stubs are generated, in the form EntityType:EntityName, where EntityType must be either Package or Component. |
- |
Yes |
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
1 |
The command ran successfully; the result is false/failure. |
2 |
The command did not run successfully; an exception was thrown. |
This example generates EJB stubs for Package:SVU. The stubs are automatically compiled and added to the JAR file svustubs.jar:
Command line (all on one line):
jagtool gen_stubs -javastubtype EJB -javastubjarname e:\temp\svustubs.jar Package:SVU
Ant build file:
<jag_gen_stubs javastubtype="EJB" javastubjarname="e:\temp\svustubs.jar" entity="Package:SVU" />
Copyright © 2005. Sybase Inc. All rights reserved. |