Home    
 
Products Solutions Developers Nirvana Nirvana documentation Nirvana examples Nirvana FAQ Nirvana Archive Matrix Partners Download Company Contact
 
 

Transactional publishing with Nirvana

home > developers > 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. The class extends nSampleApp.java.

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.
 

 

 
 

 

Printer friendly version  
   
© 2001-2008 my-channels.com. (Terms of Use)