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

Transactional publishing with Nirvana

This example (txpublish.Java) publishs events transactionally to a Nirvana server. A Nirvana transaction can contain one or more events. The events which make up the transaction are only made available by the Nirvana server if the entire transaction has been commited succesfully.

Java -DRNAME=someRNAME -DCOUNT=number -DSIZE=msgSize -DCHANNAME=somename -DTXSIZE=num Java.com.pcbsys.Nirvana.apps.txpublish

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
COUNT is the number of events you wish to publish to the Nirvana channel.
SIZE is the size of the events to publish (in bytes). All events will be published by the sample will be this size in this example.
TXSIZE is the number of events to put into each transaction.