flushstaticpage  gen_stubs

Chapter 12: Using jagtool and jagant

gen_skels

Description

Generates skeletons for a package or component.

Syntax

Local mode support: Yes.

Command line:

gen_skels 
[ connect-args | local-args ]
[-javaskelcodebase path] 
[-cppskelcodebase path] 
[-javastubtype CORBA|EJB|Jaguar1.1] 
[-compilejavaskels true|false] 
[-pseudoskels true|false] 
[-jdkversion 1.1|1.2] 
entity

Ant build file:

<jag_gen_skels 
[ javaskelcodebase="path" ]
[ cppskelcodebase="path" ]
[ compilejavaskels="true|false" ]
[ pseudoskels="true|false" ]
[ javastubtype=”CORBA|EJB|Jaguar1.1” ] 
[ 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

javaskelcodebase

The code base for Java skeletons, on the server host.

$JAGUAR/java/classes

No

cppskelcodebase

The code base for C++ skeletons, on the server host.

$JAGUAR/cpplib

No

javastubtype

The type of Java stubs used. Options are:

  • CORBA

  • EJB

  • Jaguar1.1

CORBA

No

cppstubcodebase

The code base for C++ stubs, on the server host.

$JAGUAR/include

No

compilejavaskels

Indicates whether to compile Java skeletons.

true

No

pseudoskels

Indicates whether to generate direct-access skeletons for C++ and Java/CORBA pseudocomponents. Use this option if the target components run as EAServer pseudocomponents.

false

No

jdkversion

Indicates the JDK version to use for compiling Java skeletons. Options are:

  • 1.1 – JDK 1.1

  • 1.2 – JDK 1.2 or later

1.2

No

entity

The name of the entity for which skeletons are generated, in the form EntityType:EntityName, where EntityType must be either Package or Component.

-

Yes

Returns

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.

Examples

Example 1

This example generates skeletons with EJB-compatible Java stubs for Package:SVU:

See also

gen_stubs, gen_stubsandskels





Copyright © 2005. Sybase Inc. All rights reserved. gen_stubs