Api to broadcast message to all

Greetings,

running openfire v3.6.3 on debian etch.

There’s an external application that needs to broadcast a message to all, or a group of, online users on our openfire system.

From the info I skimmed I can just install the broadcast plugin and use smack api to send a message to all@broadcast.servername or group@broadcast.servername.

Is this the right track?

thanks,

Ryan