主权项 |
1. A system for handling messages using a messaging bus residing on a mobile device, the system comprising:
a register module, residing on a mobile device, that registers a first application and a second application and stores first registration information associated with the first application and second registration information associated with the second application in a registry, wherein the second application is executing on the mobile device, wherein the first registration information includes a set of content based routing policies associated with the first application; a routing module, residing on the mobile device, that receives from the first application a communication in a first format for the second application, determines a second format associated with the second application, determines whether the first format is different from the second format, and when the first format is determined to be different from the second format, transmits the communication in the second format to the second application; and a translation module, residing on the mobile device, that when the first format is determined to be different from the second format, translates the communication in the first format to the second format, wherein when a condition is satisfied, the routing module determines a destination endpoint different from the first application based on the set of content based routing policies and transmits a second communication to the destination endpoint, and when the condition is not satisfied, the routing module transmits the second communication to the first application. |