WebSphere Message Service Clients for C/C++ and .NET, Version 1.2 Operating Systems: Linux, Windows

MessageListener

An application uses a message listener to receive messages asynchronously.

Functions

Summary of functions:
Function Description
onMessage Deliver a message asynchronously to the message consumer.

onMessage – On Message

Interface:
xmsVOID onMessage(xmsCONTEXT context,
                  xmsHMsg message);

Deliver a message asynchronously to the message consumer.

onMessage() is the message listener function that is registered with the message consumer. The name of the function does not have to be onMessage.

For more information about using message listener functions, see Using message listener functions in C.

Parameters:
context (input)
A pointer to the context data that is registered with the message consumer.
message (input)
The handle for the message.

Reference topic

Terms of Use | Rate this page

Last updated: 7 Dec 2005

© Copyright IBM Corporation 2005. All Rights Reserved.