Universal Messaging 10.5 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for VBA | Publish / Subscribe | Publishing Tasks
 
Publishing Tasks
 
Creating a Session
Finding a Channel
Universal Messaging Events
Publishing Events to a Channel
Creating a Session
To interact with a Universal Messaging Server, the first thing to do is create a Universal Messaging Session object, which is effectively your logical and physical connection to a Universal Messaging Realm.
Creating a Universal Messaging 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