Nirvana VBA : Creating a Session

To interact with a Nirvana Server, the first thing to do is create a Nirvana Session object, which is effectively your logical and physical connection to a Nirvana Realm.

Creating a Nirvana Session Object

The VBA code snippet below demonstrates the creation and initialisation of an nSession object:

Dim nsa As New nSessionAttributes
Call nsa.init("nsp://127.0.0.1:9000")

Dim fact As New nSessionFactory

Set sess = fact.Create(nsa)
Call sess.init