Project

General

Profile

Tigase Component is not showup in Service Discovery

raghul ram
Added over 4 years ago

I followed the example given at http://www.tigase.org/content/component-implementation-lesson-1-basics

init.properties

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = localhost
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=sql123
--user-db = mysql
--admins = admin
--comp-name-6 = test
--comp-name-7 = message-archive
--comp-name-5 = rest
--comp-name-4 = stun
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = false
--sm-plugins = +message-archive-xep-0136,+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,-http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,-http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,+zlib
--comp-class-6 = TestComponent
--comp-class-7 = tigase.archive.MessageArchiveComponent
--debug = server,xmpp.impl,db
--comp-class-5 = tigase.http.rest.RestMessageReceiver
--comp-class-4 = tigase.stun.StunComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent

I Can see component loading in Console succesffully

Loading component: stun :: componentInfo{Title=Tigase STUN Component, Version=1.1.0-b27/6ecf2656, Class=tigase.stun.StunComponent}
Loading component: test :: componentInfo{Title=Tigase XMPP Server, Version=5.2.0-b3447/48635d0a (2014-02-12/17:29:15), Class=TestComponent}
Loading component: ws2s :: componentInfo{Title=Tigase XMPP Server, Version=5.2.0-b3447/48635d0a (2014-02-12/17:29:15), Class=tigase.server.w

But, as shown in example, the Component is not listed in Service Discovery of PSI client, nor the Log messages are not appearing in Tigase.console.log

I had changed Logger from , log.finest to log.info


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 4 years ago

Go to lesson 4 to see how to make your component visible in service discovery. Also, make sure you login as admin to see all the server components. To make the component visible for normal user you need to modify some parameters in the component code.

Also, to make the component log something you need to generate some traffic to the component and set a correct logger.

    (1-1/1)