Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference


A number of the run-time libraries used by the MTA SDK make intensive use of stack variables. As a result, some MTA SDK operations can require a larger than usual thread stack size. The minimum thread stack size required for typical MTA SDK operations, such as message dequeue and enqueue operations, can be obtained with mtaStackSize(). When writing multi-threaded code, ensure that any threads that will be calling SDK routines have a stack size at least as large as the value returned by mtaStackSize(). Failure to do may result in abnormal process terminations when a thread overruns its stack.