We use a Common Program to Get/Put messages in MQ (Say MQX).We have at least 30 Programs which is using this MQX to put or get messages from MQ.Though these programs have different length of Messages ,they are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using considerable amount of CPU.
A,B,C programs Calls MQX
A has MQ Message Length of 50 bytes
B has MQ Message Lenght of 2000 bytes
C has MQ Message Length of 20 MB
Since MQX is the common module ,MQX has been gradually increased to 20 MB .So A,B though have smaller MQ Message length it is forced to use 20 MB to pass the message.
Joined: 20 Oct 2006 Posts: 6970 Location: porcelain throne
what is the problem?
the length of the message, is the message length...
and just because you read a 20 byte message into an 20mg byte buffer is no problem.
you are having to resource problems just because of the 20mg buffer size.
you are deluded and have a personal problem which needs to be rectified before you have fix your mqs mess.
you have something else wrong with your system.
a standard - single module to read/write mqs message, regardless of the size is the way to go -
and your crying about needing separate module to handle the 'big ones',
only shows how inexperienced your are.
now explain your problem (other that wanting two modules).
how did you determine the problem?
because this is an idiot statement:
They are forced to use the maximum message length while calling MQX ,since it is the common module which inturn using ...