During application assembly, be sure to specify the following module so you can use the Repository Loader Example:

RL.Example

Don’t include any other ATG demo, example, or reference application modules in the application that includes the Repository Loader because the database connection configurations may conflict.

Once the application is started, you can navigate to this page for the Repository Loader Administration user interface:

http://hostname:port/rl

where hostname is the machine running your application server and port is the port your application server uses to listen for HTTP requests. To find the default port, see the ATG Installation and Configuration Guide.

Then, use the Repository Loader Administration user interface to load the sample files included in the FileSystemMonitorService root path: <ATG2007.3dir>/RL/Example/j2ee-apps/example/web-app\public :

  1. If you are running on Windows, set the pathSeparator property of the /atg/rl-example/ExampleRepository component to \:

    pathSeparator=\

    Remember that \ is an escape character in properties files, so if you are setting this property in a properties file rather than in the ACC, you need to use this format:

    pathSeparator=\\

  2. Click the Create Job link.

  3. Set the Recurse option to yes.

  4. Click the Add Files button.

This loads the files from the root path into the ExampleRepository as repository items. The Repository Loader Administration should show the job as completed.

In addition, the Repository Loader example shows an example of how you can use the xml2repository feature to export a repository item in the form of an XML file. Go to the following page in your browser:

http://hostname:port/rl-example/itemAsXml.jsp

Note: hostname is the machine running your application server and port is the port your application server uses to listen for HTTP requests. To find the default port, see the ATG Installation and Configuration Guide.

This page takes a hard-coded repository item (user001) and outputs it as an XML file. Depending on your browser settings, you will likely have to view the resulting page as source in order to see the generated XML. This demonstrates an example of the format used by the xml2repository system. Examining the XML format generated for a particular item descriptor might help you if you want to generate compliant XML or write an XSL stylesheet for the Repository Loader to apply before processing a file’s contents.

 
loading table of contents...