In a distributed computing environment, a message gate may be the message
endpoint for a client or service to communicate with another client or
service. Message gates may be pre-generated and built into the device.
For example, message gates may be generated during the build of embedded
software as a means of including a built-in secure message endpoint that
does not have to be constructed at runtime. A generation tool may be
provided for the pre-construction of gates. The generation tool may
include an XML parser, a code generator and a code compiler. In one
embodiment, the code generator may be a Java source code generator and
the code compiler may be a Java code compiler. During the build of the
software for which built-in message gates is desired, the generation tool
is run with input from all the relevant XML schemas for which gates are
desired. The parser may receive a message schema corresponding to each
service or service type that a message interface will be desired in the
device. The parser may parse each schema into an intermediate format from
which code generator produce source code for the message interface or
verification part of a gate to be built-in to the device. Compiler
produces executable code, e.g. Java bytecode, from the source code. The
executable code may be linked into the operating code for the device
during a code-build process for the device.