Patent ID: 8761017

Claim:
A method comprising: calculating, by a communications device, a cost of transmitting an enterprise service bus message for each of a plurality of available communication pathways, wherein the plurality of available communication pathways comprises established and unestablished communication pathways, wherein an established pathway comprises the communications device having been setup to communicate over a Wi-Fi communication pathway, and wherein an unestablished pathway has to be setup prior to communicating an enterprise service bus message, and a cost of an unestablished communication pathway comprises a cost to establish that communication pathway; determining a cost for transmitting a control message for a control communication pathway; transmitting the control message over the control communication pathway when the cost for transmitting the control message is below a threshold; and selecting one of the plurality of available communication pathways to transmit the enterprise service bus message using the transmitted control message, wherein the selected communication pathway has a lowest one of the plurality of calculated costs.