Creates an XML configuration file that matches the configuration of an existing entity.
exportconfig [ connect-args | local-args ] [-dir dirname] \ [-configtype update|create] [-verbose true|false] \ [-easerverpropsonly true|false ] entity
<jag_exportconfig [ dir=”dirname”] [configtype=”update|create”] [verbose=true|false”] [easerverpropsonly “true|false “] 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 |
|
The directory where the file is to be created. |
Current directory |
No |
|
Specifies the value of the type attribute of the configure XML element that is created. |
|
No |
|
Execute in verbose mode. |
|
No |
|
Whether the generated XML file should include all properties, or only those properties that are not set in an equivalent J2EE deployment descriptor for the entity. Specify true to exclude properties that are set in the equivalent J2EE deployment descriptor. |
|
No |
entity |
The name of the entity being created, in the form EntityType:EntityName. |
- |
Yes |
The exportconfig command creates the file sybase-easerver-config.xml in the specified directory. The command fails if a file with this name already exists.
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 command line example creates an XML configuration
file in the current directory for the component EventSamples/StockManager and specifies create
as
the configure type:
jagtool exportconfig -configtype create Component:EventSamples/StockManager
In 6.0 and later releases, use the Ant user-configuration target format described in Chapter 2, “Ant-Based Configuration.”