Universal Messaging 9.8 | Universal Messaging Developer Guide | Web Client APIs | Web Developer's Guide for Adobe Flex | Finding a Channel or Queue
 
Finding a Channel or Queue
Once the session has been established with the Universal Messaging realm server, the session object can be used to locate an existing Universal Messaging store (nChannel or nQueue) by specifying the store's name.
Note that you can use the Enterprise Manager GUI to create a Universal Messaging channel or queue. Also it can be done programmatically in Flex; see Creating a Universal Messaging Channel or Queue.
This Flex code snippet demonstrates how to find a channel (for example, the channel flex):

var storeName : String = ("flex");
mySession.findStore( storeName, storeFoundCallbackFunc );
Note also that the findStore call is asynchronous; it returns immediately, allowing single-threaded Flex clients to continue processing.
To enable the developer to know when a findStore call has completed, the findStore function takes two parameters: the first is the channel name, and the second is a developer-defined Flex function that will be called immediately after the channel is found.
A channel or queue object (nChannel or nQueue) will be passed as a parameter to this callback function if the channel or queue was found. If the channel or queue does not exist, an error will be returned to the callback function instead.

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.