javaagents-jade

How to send messages between a web client and a JADE multi-agent system?


I am working on a JADE project and I want to build a React app to interact with my agents.

I would like to send messages to specific agents from my web client using REST. I know that it is possible to send POST requests, but what the body should look like ?


Solution

  • if you create an agent programmatically you can sent message to the agent by means of AgentController.putO2AObject, but you need server code that processes your rest message and delegate it to the agent.

    Otherwise you can just create java.net.ServerSocket in agent code and sent any message you want from your client