Universal Messaging 9.7 | 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-2015 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.