I am trying to create a simple HelloWorldAgent by inheriting from spade Agent class. I have hosted my XMPP server on a different machine with host name abc.com. I am using Prosody IM for XMPP server. It allows jid with any domain name. I have created a jid john@pqr.org.
While creating an instance of the HelloWorldAgent, I pass on the jid john@pqr.org and password. There is no way to pass XMPP server host to the Agent constructor. How can I initialize a HelloWorldAgent with jid john@pqr.org hosted on abc.com?
Description
I am trying to create a simple HelloWorldAgent by inheriting from spade Agent class. I have hosted my XMPP server on a different machine with host name
abc.com
. I am using Prosody IM for XMPP server. It allows jid with any domain name. I have created a jidjohn@pqr.org
.While creating an instance of the HelloWorldAgent, I pass on the jid
john@pqr.org
and password. There is no way to pass XMPP server host to the Agent constructor. How can I initialize a HelloWorldAgent with jidjohn@pqr.org
hosted onabc.com
?