Project

General

Profile

Components

Luca Stucchi
Added over 4 years ago

Hi there,

I am implementing my first component for Tigase 5.2.3. While plugins work great following the indications in the guide, I am following the instruction at http://docs.tigase.org/tigase-server/snapshot/Development_Guide/webhelp/cil1.html but I am stuck since

in init.properties there is no indication for other components like :

--comp-name-1 = muc
--comp-class-1 = tigase.muc.MUCComponent
--comp-name-2 = pubsub
--comp-class-2 = tigase.pubsub.PubSubComponent

I can't find etc/tigase.xml

in the logs I don't see any reference to my component :(

Is there any up-to-date guide ? Or any hint that I could try out ?

Thanks in advance,

Luca


Replies (2)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 4 years ago

The muc and/or pubsub component does not have to be in your init.properties. It depends on your installation and initial configuration. These are just example lines for the Tigase installation with MUC and PubSub components configured. The point is to add similar lines for your own component as indicated a few lines down in the document you linked above.

So if you do not have any other components (muc or pubsub) you just add lines for your own component:

--comp-name-1=test
--comp-class-1=TestComponent

There is no more tigase.xml file.

Added by Luca Stucchi over 4 years ago

Thank you so much.

I didn't figured out that the --comp-class-1 value should be set with full package, so:

--comp-name-1=test
--comp-class-1=com.acme.package.TestComponent

Thanks for your help,

Luca

    (1-2/2)