Upload and Download Utilities

Option

Description

 

 

-r

This option ensures that the repository and object cache for

 

a running instance of Wireless Edition are current. The

 

following is sample syntax:

 

-r rmi://stpc250.us.oracle.com:2008/PanamaServer -c0 <

 

bootstrap.xml

 

rmi-host is the machine on which the RMI registry is

 

running.

 

port is the port at which the registry is listening.

 

server-name is the name of the Wireless Edition instance.

 

port and server-name can be found in the Rmi.properties

 

file.

 

 

Unload Example

In this example, XML data is written to standard output.

java oracle.panama.core.util.LoadXml -l adm/adm -x > outputfile.xml

Upload Example

In this example, XML data is read from standard input. It must contain all referenced objects.

prompt$ java oracle.panama.core.util.LoadXml -l adm/adm -c0 < inputfile.xml

8.3 Upload and Download Utilities

You can use the upload and download utilities to import and export the Wireless Edition repository as an XML file. These utilities invoke LoadXml. They are located in the WE_HOME/sample directory of your development environment. You invoke upload from a command prompt as follows:

upload.bat repository.xml

This loads the contents of the file repository.xml into the repository. It accesses the repository specified by the connect string in the client-side System.properties file.

To download a repository:

download.bat repository.xml

This places the contents of the repository in a file named repository.xml.

Utilities 8-5

Page 97
Image 97
Oracle Audio Technologies 9i manual Upload and Download Utilities