DynamicContentStream
This program demonstrates inserting dynamic content without spawning a new thread, by using ContentFactory.newUnBufferedContent
. The following is a sample command to run the DynamicContentStream
program:
java -classpath "XCC_HOME/lib/xcc.jar:XCC_HOME/lib/xccexamples.jar" com.marklogic.xcc.examples.DynamicContentStream xcc://username:password@localhost:8021 /any/valid/docURI
This inserts a new document at /any/valid/docURI
in the contentbase described by the XDBC App Server URI xcc://username:password@localhost:8021
. For demonstration purposes, the document contents are generated dynamically by the sample application.