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

Publish/Subscribe Example Code

Nirvana provides a rich set of publish/subscribe functionality. This page provides some links to eample programs which are provided with the Nirvana download.

Regardless of what network protocol you are using to connect to Nirvana the code will be the exact same so these examples do not focus on specific network protocols such as HTTP/HTTPS.

 

Create a Nirvana channel

Example showing how to make a Nirvana channel.

Delete a Nirvana channel

Example showing how to delete a Nirvana channel.

Publish events to a Nirvana channel

Example Nirvana Publisher .

Subscribe to events on a Nirana channel

Example Nirvana Subscriber.

Publish events transactionally

Example Nirvana Transactional Publishing application.

Add a named subscriber to a Nirvana channel

An example Nirvana named subscriber application.

Publish XML events onto Nirvana

Example showing how to publish XML DOM documents using Nirvana.

Consume XML events from Nirvana

Example code that demonstrates how to consume an XML DOM document using Nirvana.