CentraSite Documentation : CentraSite Developer's Guide : Application Framework : Mapping Beans to Registry Objects with Annotations : Generating Beans from the Command Line
Generating Beans from the Command Line
You can use the command line interface CentraSiteCommand.cmd (Windows) or CentraSiteCommand.sh (UNIX) of CentraSite. The command line tool is located in the directory <CentraSiteInstallDir>/utilities.
Use the GenerateCSAFBeans to generate registry beans in CentraSite.
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>GenerateCSAFBeans.cmd <USERNAME> <PASSWORD> <CENTRASITE-URL> <TYPENAME> <INTERFACEPACKAGE> <IMPLPACKAGE> <DESTINATION>
The input parameters are:
Parameter
Description
USERNAME
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
PASSWORD
The password for the registered CentraSite user identified by the parameter -user.
CENTRASITE-URL
Optional. The URL of the CentraSite registry. Default value is http://localhost:53307.
TYPENAME
Required. The namespace or name of the type to be generated. Example: {http://test}TestService.
Or, the name of the virtual type to be generated. Example: "Virtual service" .
Note:  
The quotation marks are necessary, in order that "Virtual service" is parsed as a single token.
INTERFACEPACKAGE
Required. The name of the package in which the interfaces should be generated. For example: com.sag.generated
IMPLPACKAGE
Required. The name of the package in which the implementation should be generated. For example: com.sag.generated.impl
DESTINATION
Required. The location where the generated bean will be stored.
Example:
C:\SoftwareAG\CentraSite\utilities>GenerateCSAFBeans.cmd Administrator manage http://localhost:53307 "Virtual service" com.sag.generated com.sag.generated.impl c:\tmp\
Copyright © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback