Now I want to develop a spark plugin to monitor and receive the message which is broadcasted by openfire, this plugin can show the message to user. The openfire send the message by the follow way:
Message message = new Message();
message.setTo(session.getAddress());
message.setFrom(serverAddress);
message.setSubject(“Message i=of Current Shot”);
message.setBody(DataBaseManager.getShotInfo());
router.route(message);
So who can tell me the spark plugin how to monitor and receive the message? Thanks!