generateMsg()

Generates a message with a predefined message from a message file.

Syntax

char * generateMsg(int msgNum, int msgType, char * info,
     int argCount, va_list v1);
  

Parameters

msgNum [in]
is an integer that specifies the message number in the message file.

msgType [in]
is one of the following message types:
XRD_UNKNOWN 
  XRD_WARNING 
  XRD_ERROR 
  XRD_FATAL 
  XRD_INFO 
  XRD_TRACE 
  

info [in]
is an informational value, such as the name of the class for which the IBM WebSphere business integration system generated the message.

argCount [in]
is an integer that specifies the number of parameters within the message text (optional).

v1 [in]
is an optional list of parameters for the message text, separated by commas. Each parameter is a char * value.

Return values

A pointer to the generated message.

Notes

You can use the generateMsg() method to generate messages in different languages. For each language that your application supports, you can create a separate message file for messages in that language.

With the XRD_TRACE message type, you can generate trace messages.

Important:
The generateMsg() method in this class has been deprecated. Use the generateMsg() method found in the GenGlobals and BOHandlerCPP classes instead.

Examples

generateMsg(3160, XRD_ERROR, "Logon ID is invalid.", 0);
  

See also

See also the description of the generateMsg() method under BOHandlerCPP Class and GenGlobals Class.

Copyright IBM Corp. 1997, 2003