Project

General

Profile

How to upload my own plugin into server and activating that

Erfan Nazari
Added over 3 years ago

Hi

I have a question about uploading plugin into server without compilation whole of tigase source code.

How can I do that?

I have written plugin as the same as tigase documentation in eclipse into the tigase.xmpp.impl -> TestPlugin.java

So I am disoriented about

1.how to export the plugin and upload to server to activate using init.properties

2.How to connect TestPlugin to my custom component

Thanks for any reply.


Replies (2)

Added by Daniel Wisnewski IoT 1 Cloud over 3 years ago

Efran,

You don't need to compile your plugin with Tigase.

Once you compile your java program into a jar file using jar cf jar-file input-file(s), place it in your /jars directory of the tigase binary, in your init.properties file be sure to add

--sm-plugins=+TestPlugin

and you should be able to access the plugin.

If you need to call it, add import TestPlugin to a component code

Added by Erfan Nazari over 3 years ago

Thank you very much.

    (1-2/2)