Openfire plugin development

Hi there, I’m new with openfire and, even if I read the plugin development guide, I don’t have a clue on how to make the program I have to do.

Basically my openfire server has to send some iq messages to every client logged in the same room.

So my questions are:

1)How to create a room on the server? (from a program, not using server console).

2)How to make openfire send messages JUST to these clients?

3)I need to define my own iq messages, how can I do this?