Universal Messaging Developer Guide : The Enterprise Client APIs : Overview of Developer's Guide for VBA : Publish / Subscribe : Publishing Tasks : Universal Messaging VBA : Creating a Session
Universal Messaging VBA : 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
Copyright © 2013-2014 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback