This is archived documentation for an older version of Nirvana (v3.1). Please refer to documentation for the latest version if required.

Publish XML DOM events to a Nirvana channel

This example (XMLPublish.Java) publishes XML DOM events onto a Nirvana channel. The program reads XML from a file and converts it to the DOM Document object which is published onto Nirvana. This program is provided in the apps directory of your Nirvana client install. For more information please see our XML FAQ. The class extends nSampleApp.Java.

Java -DRNAME=someRNAME -DCOUNT=number -DFILENAME=xmlDocument -DCHANNAME=somename com.pcbsys.Nirvana.apps.XMLPublish

where :
RNAME is the realm name of the Nirvana server you wish to connect to (e.g. nsp://localhost:9000 ).
COUNT is the number of events you wish to publish to the Nirvana channel.
FILENAME is the name of the XLM file to publish.
CHANNAME is the name of the channel to publish events to.