In our application we have some agents to execute background jobs. In order to make them report back, we developed an XAgent that the agents can "call" using REST (written in Java), and we put the necessary info in the url. It works, but it's not ideal.
Would it be possible to devise some universally applicable way to interact between multiple parts of an application? Some sort of messages maybe? XPages->Agent (difficult), Agent->XPages, XPages->XPages? Maybe as an extension to Publish-Subscribe?