In a communication system with a first computer and a second computer, the first
computer with a first process communicates with a destination on the second computer.
The first computer receives destination information indicative of the destination
from the first process. The first computer then determines a transport protocol
for a message object based on the destination information. The first computer then
generates the message object based on the destination information. The first computer
receives message information indicative of a message to be transmitted from the
first process to the destination. Finally, the first computer transmits the message
information from the first process to the destination using the message object
and the determined transport protocol. One advantage of determining the transport
protocol at run-time is the transport protocol may be determined by an environment
variable. This allows the system administrator to alter the transport without recompiling
or modifying code.