Hi everyone, I’m writing a plugin for Openfire where I need to send messages to other users on other openfire servers (with different DNS Names)
I’ve tried SessionManager.sendServerMessage(JID, String, String) but it only works with its own users …
Any suggestion?
Help in : http://www.igniterealtime.org/builds/smack/docs/latest/documentation/
Is all information about connect, send, listeners, rosters etc…
U need make un server local or external
Local : http://www.igniterealtime.org/downloads/index.jsp
note(I don’t know if exist api, but code is to easy, only 3 o 4 lines)
CSH
3
@delive: The question is about Openfire plugin API and not about Smack.
@Vincenzo:
AFAIK you have to derive from org.xmpp.component.AbstractComponent and create your own component (which will be the sender / ‘from’ attribute).
Then something like this:
componentManager = ComponentManagerFactory.getComponentManager();
…
componentManager.addComponent(“componentsubdomain”, yourcomponent);
…
componentManager.sendPacket(yourcomponent, message);