Openfire API - Send Message

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)

@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);

this link might help?

in the zone “Openfire API documentation.”

http://www.igniterealtime.org/projects/openfire/documentation.jsp

About plugin :

u can see this links :

-plugin development

http://www.igniterealtime.org/support/articles/motd_plugin.jsp

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/plugin-d ev-guide.html