Mechanism for validating the message format for message channels
First Claim
1. A method for validating a message in a message queuing environment wherein the message is validated before the message is sent to a recipient program.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for validating messages in a message queuing software environment before the messages are transmitted to the recipient programs comprising a Message Validating Program (MVP). The present invention makes the message queuing software more efficient by eliminating the transmission of invalid messages through the message channels. The MVP acquires the messages as they are originated by the sender program and analyzes the message by comparing the message header and the message body to validating criteria. The validating criteria are the properties, ranges, types, character sets, and formats of data in the message header and message body that the recipient programs will accept. If the message body and the message header meet the validating criteria, then the message is forwarded to the appropriate message queue. If the message body and/or the message header do not meet the validating criteria, then an error is indicated to the sender program.
-
Citations
27 Claims
- 1. A method for validating a message in a message queuing environment wherein the message is validated before the message is sent to a recipient program.
- 13. A program product for validating a message in a message queuing environment wherein the message is validated before the message is sent to a recipient program.
-
25. An apparatus for validating a message in a message queuing environment wherein the message is validated before the message is sent to a recipient program, the apparatus comprising:
-
acquiring the message;
comparing the message header to the validating criteria;
comparing the message body to the validating criteria; and
wherein the validating criteria specifies a data that the recipient program will accept;
comparing a message property to a validating criteria property;
wherein the message is valid only if the message property matches the validating criteria property;
comparing a message value to a validating criteria value;
wherein the message is valid only if the message value matches the validating criteria value;
comparing a message type to a validating criteria type;
wherein the message is valid only if the message type matches the validating criteria type;
comparing a message character set to a validating criteria character set;
wherein the message is valid only if the message character set matches the validating criteria character set;
comparing a message format to a validating criteria format;
wherein the message is valid only if the message format matches the validating criteria format;
determining whether the message is valid;
responsive to the determination that the message is valid, forwarding the message to a message queue for distribution to the recipient program; and
responsive to the determination that the message is not valid, indicating an error to a sender program without forwarding the message to the message queue for distribution to the recipient program.
-
Specification