Search code examples
javaagents-jade

Communication with JADE from non-JADE application


Is it possible to send a message to (and receive from) a JADE agent/platform from a non-JADE application (written in Java or C/C++)? Is it somehow possible to send an HTTP Post request to the platform that contains a FIPA compliant ACL message? I could establish a socket connection but I'm sure that's not the best option, right?

I've read about JadeGateway but don't really get it to work and don't understand why I should use it if I need the Jade libs anyway with which I could simply run another platform.

Would be nice if someone could help me out here.


Solution

  • Three are three options I can think of, you can use JNI, JMS or web services. With JNI you would make native calls into the C/C++ code, JMS you would send a message to a queue that had a listener capable of calling the C/C++ or with web services you could invoke a web service call that would call the C/C++ code on the other side (as in Java/.Net integration via ws).