Universal Messaging Developer Guide : Enterprise APIs : Enterprise Developer's Guide for VBA : Publish / Subscribe : Publishing Tasks : Creating a Session
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-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback