How to config plugin, tigase not load my plugin

wennancheng wen
Added about 2 years ago


sorry, my english is poor, I have a problem about how to develop and config plugin?

I wrote java code followed:

public class AppCustomMessage extends AnnotatedXMPPProcessor implements XMPPProcessorIfc{
    /** Class loggeer */
    private static final Logger log = Logger.getLogger(AppCustomMessage.class.getName());
    protected static final String ID = "message-exp";

      @Handle(path={ "message-exp" },xmlns="jabber:client")

    public void process(Packet packet, XMPPResourceConnection session,
        NonAuthUserRepository repo, Queue<Packet> results, Map<String, Object> settings)
        throws XMPPException 
        // For performance reasons it is better to do the check
        // before calling logging method.
        //if (log.isLoggable(Level.FINEST)) 
            log.log(Level.FINEST, "--------->Processing packet: {0}", packet);

config with followed:


in console not see load my plugins, and it did not work, and output log is

2016-11-28 19:11:11.053 [in_8-message-router]  MessageRouter.getLocalComponent()  FINEST: No componentID matches (fast lookup against exact address)

can anyone help me???

Replies (1)

Added by Wojciech Kapcia TigaseTeam about 2 years ago

During startup you should see something similar in @etc/tigase-console.log@:

Loading plugin: message-exp=…

You also set high log level:

log.log(Level.FINEST, "--------->Processing packet: {0}", packet);

Which would require adding yesky to --debug= line (you are using @package tigase.yesky.plugin@):