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

Consume XML events from a Nirvana channel

This example (XMLSubscribe.Java) subscribes to a Nirvana channel and handles the consumed events as XML. 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 -DCHANNAME=channame -DSTART=num -DDEBUG=num -DCOUNT=num -DSELECTOR=eventFilter com.pcbsys.Nirvana.apps.XMLSubscribe

where :
RNAME is the realm name of the Nirvana server you wish to connect to (e.g. nsp://localhost:9000 ).
CHANNAME is the name of the channel to publish events to.
START is the event id (eid) to start subscribing from. This defaults to subscribing from the latest eid.
DEBUG is how verbose the output should be. 0 = none; 1 = summary, 2 = EIDs only , 3 - eids and data.
COUNT is the number of events after which a summary should be reported
SELECTOR is the event filter string to use. The default is no filter. Read more about Nirvana filtering.