Tigase Forums

API and development: RE: Clust

Tigase XMPP Server Board - Tue, 04/09/2019 - 14:03

Sunny Lohana wrote:

Thank you for your response.

I have enabled cluster mode true in both servers, also checked port 5277 is open, and both instances are in the same timezone
But i did not get the 2nd option what it means? Do i need to manually enter nodes information in database?

No, the nodes will automatically place the information in the database (and retrieve information about remaining nodes). You should check your database by executing:

select * from tig_cluster_nodes

that it has all nodes present.

Please also check tigase logs. You may need to enabled debug for cluster package (see: Debuging Tigase)

Categories: Tigase Forums

Installation and maintenance: RE: How do I determine if a user is offline and store an offline me...

Tigase XMPP Server Board - Tue, 04/09/2019 - 05:14

Please stop duplicating questions. It is not helping you or anyone else. Your question was already answered at https://tigase.tech/boards/17/topics/8366?r=8370#message-8370

Categories: Tigase Forums

Installation and maintenance: Modify the port number of tigase

Tigase XMPP Server Board - Tue, 04/09/2019 - 04:48

Hello man, I have installed tigase8.0, I don't know how to modify port Numbers such as 8080,5222,5223 of tigase, how should I modify it in the configuration file config.tdsl

Categories: Tigase Forums

Installation and maintenance: How do I determine if a user is offline and store an offline message

Tigase XMPP Server Board - Mon, 04/08/2019 - 23:00

I have installed 8.0 but I did not know that tigase was in that instance judging whether the user was online and storing offline messages

Why tigase does not store an offline message when I send a node user with type="groupchat" offline using HTTP, what should I do if I want to store an offline message with type="groupchat"?

Categories: Tigase Forums

API and development: RE: Clust

Tigase XMPP Server Board - Mon, 04/08/2019 - 22:22

Thank you for your response.

I have enabled cluster mode true in both servers, also checked port 5277 is open, and both instances are in the same timezone
But i did not get the 2nd option what it means? Do i need to manually enter nodes information in database?

Categories: Tigase Forums

API and development: RE: Clust

Tigase XMPP Server Board - Mon, 04/08/2019 - 17:09

Please make sure that you have:

  • enabled cluster mode, see Cluster mode Configuration
  • that nodes are correctly placed in the database
  • that nodes can communicate (port 5277 is open)
  • nodes have correctly synchronised time and are in the timezone (too much difference can prevent nodes from establishing connection)
Categories: Tigase Forums

API and development: Clust

Tigase XMPP Server Board - Mon, 04/08/2019 - 04:19

Dear Team,

I want to achieve clustring in Tigase Server.
I have two Tigase 8 source code running on two different machines connected with Centralized database, both are running well, but the clients (on both instances) can not communicate with each other and also there is no any list of connected nodes in service discovery..

Do i need to add any component in source code to achieve Clustring?

Categories: Tigase Forums

Installation and maintenance: RE: Use WebSocket to link tigase

Tigase XMPP Server Board - Thu, 04/04/2019 - 08:58

I'm not completely sure that I understand your question.

Categories: Tigase Forums

Installation and maintenance: Use WebSocket to link tigase

Tigase XMPP Server Board - Thu, 04/04/2019 - 01:27

What should I do if I need to use websocket to link tigase to transfer the XML node and return the processed data?You need to operate in that class in the tigase source code

Categories: Tigase Forums

Installation and maintenance: RE: Communication between two different domains or servers in tigase

Tigase XMPP Server Board - Wed, 04/03/2019 - 21:42

Thank you so much for such a quick response, this helped me alot.

Categories: Tigase Forums

Installation and maintenance: RE: Communication between two different domains or servers in tigase

Tigase XMPP Server Board - Wed, 04/03/2019 - 16:40

IN the cluster option you can have all user accounts on the same domain but you can also have multiple domains and all of them on all cluster modes.

Categories: Tigase Forums

Installation and maintenance: RE: Communication between two different domains or servers in tigase

Tigase XMPP Server Board - Wed, 04/03/2019 - 12:17

Sunny Lohana wrote:

i want to know, Does Tigase support communication between two different domains or two different tigase servers running on different machines with centralized database?
if Yes, then please guide me how to make this possible.

Hi!
Those are actually two cases :-)

Depending on what you want to achieve you have following options:

  • deploy Tigase XMPP Server to machine-1 with domain-1 and another instance of Tigase to machine-2 with domain-2; both can be pointed to the same database. However - you HAVE TO configure correctly DNS SRV records for both instances so it will be possible to correctly establish federated connection between them - please take a look at Tigase Server Network Instructions
  • (better approach) utilize Tigase XMPP Server's scalable clustering - you in that case you configure all your instances in the same way and point to the central database, all cluster nodes will automatically detect remaining nodes and establish connections. All users (from both domains) will be able to chat among themselves independently of the node to which they are connected - this achieves High Availability and Load Balancing; please see Tigase Clustering for more details.
Categories: Tigase Forums

API and development: RE: Skipping registration of a bean for new plugin

Tigase XMPP Server Board - Wed, 04/03/2019 - 12:08

How did you build your plugin? Have you included it in your classpath? Does it fail if you explicitly configure class:

'sess-man' () { 'http://jabber.org/protocol/offline' () {} 'mail_plugin'(class: your.package.MailPlugin){} }
Categories: Tigase Forums

API and development: Multi Data Center Communication

Tigase XMPP Server Board - Wed, 04/03/2019 - 10:45

Dear Team,

i want to know, Does Tigase support communication between two different domains or two different tigase servers running on different machines with centralized database?
if Yes, then please guide me how to make this possible.
That will be great help to me.

Thanks In Advance.

Categories: Tigase Forums

Installation and maintenance: Communication between two different domains or servers in tigase

Tigase XMPP Server Board - Wed, 04/03/2019 - 04:38

Dear Team,

i want to know, Does Tigase support communication between two different domains or two different tigase servers running on different machines with centralized database?
if Yes, then please guide me how to make this possible.
That will be great help to me.

Thanks In Advance.

Categories: Tigase Forums

API and development: Skipping registration of a bean for new plugin

Tigase XMPP Server Board - Wed, 04/03/2019 - 01:06

I am trying to build a new plugin, have followed the procedure from the plugin development guide. In my plugin I am just trying to send a dummy mail if the user is offline.
Source code is as below. Have taken the code from tigase.xmpp.impl.Message plugin and added sendMail method if the user is offline

@Id("mail_plugin") @Handles({@Handle(path = {tigase.server.Message.ELEM_NAME}, xmlns = XMLNS)}) @Bean(name = "mail_plugin", parent = SessionManager.class, active = false) public class MailPlugin extends AnnotatedXMPPProcessor implements XMPPProcessorIfc{ protected static final String ELEM_NAME = tigase.server.Message.ELEM_NAME; protected static final String XMLNS = "jabber:client"; private static final Logger log = Logger.getLogger(Message.class.getName()); private static final String DELIVERY_RULES_KEY = "delivery-rules"; private static final String SILENTLY_IGNORE_ERROR_KEY = "silently-ignore-message"; public static Predicate<XMPPResourceConnection> VIABLE_FOR_MESSAGE_DELIVERY = (conn) -> conn.getPriority() >= 0; @ConfigField(desc = "Message delivery rules", alias = DELIVERY_RULES_KEY) private MessageDeliveryRules deliveryRules = MessageDeliveryRules.inteligent; @ConfigField(desc = "Silently ignore errors", alias = SILENTLY_IGNORE_ERROR_KEY) private boolean silentlyIgnoreError = false; public void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String, Object> settings) throws XMPPException { if (session == null) { sendMail(); processOfflineUser(packet, results); return; } // rest of the code is same as tigase.xmpp.impl.Message.process() }

}

And in my config.tdsl file under sess-man, i have given it as follows

'sess-man' () {
'http://jabber.org/protocol/offline' () {}
'mail_plugin'(){}
}

However once I start the server, i get following in tigase-console.log and my plugin is not being loaded.
"AbstractBeanConfigurator.registerBeans() WARNING: unknown class null for bean mail_plugin, skipping registration of a bean"

Please correct where am I going wrong. I am using latest source code of tigase

Categories: Tigase Forums

API and development: RE: Building tigase-server from eclipse

Tigase XMPP Server Board - Mon, 04/01/2019 - 11:40

Chandan Parameswaraiah wrote:

No, I am not able to build from console too. Please suggest a solution

What error do you get in the console? Could you share complete output?

Categories: Tigase Forums

API and development: RE: Building tigase-server from eclipse

Tigase XMPP Server Board - Sun, 03/31/2019 - 23:04

Thanks for the reply. Its Eclipse STS(verion 3.9.4.RELEASE). I have made no changes. Just cloned the project and imported into eclipse and I get those errors.

No, I am not able to build from console too. Please suggest a solution

Categories: Tigase Forums

API and development: RE: Building tigase-server from eclipse

Tigase XMPP Server Board - Thu, 03/28/2019 - 11:57

Which Eclipse version do you use? Have you made any changes? Can you build the server from the console (i.e. mvn clean install)?

Categories: Tigase Forums

Pages

Back to Top