-
Notifications
You must be signed in to change notification settings - Fork 16
Example Use Cases
While CoRB has many options and is extensible even further, there are two typical uses for CoRB: manipulating data, and generating a report.
As mentioned previously, the properties for CORB options can be set several ways:
- directly on the command line using main method argument positioning
- system properties, often set with
–Dcommandline switches - using the OPTIONS-FILE option to specify a properties file
If the same option is provided in multiple places, the order of precedence is: main arguments, system properties, and finally OPTIONS-FILE properties.
With so many ways to set properties, it is not reasonable to have an example in this section for every possibility. Therefore, this wiki provides one example using class arguments, one example using system properties arguments, and the rest using a properties file which could be considered a best practice.
Regardless of which approach is used, it will always be necessary to have the required jars on the classpath when executing CORB. The first jar necessary is the one that contains CORB itself which is currently: marklogic-corb-2.3.2.jar. Second, the jar containing MarkLogic’s XCC connection API is necessary which is currently: marklogic-xcc-9.0.1.jar. Finally, if Jasypt encryption is being used, you'll need the jar for it as well as the properties file for Jasypt: jasypt-1.9.2.jar, jasypt.properties.