Configuring the Jabber Transport Service

This page explains how you can configure the Jabber transport service, either by config string or by fluent interface. The jabber transport allows communication of application space instances over the internet (including the ability to pass firewalls). For more info about jabber see here;

Config String

With the config string the following options can be configured:
  • jabber.jid: Configures the jabber id that is used to connect to the jabber server.
  • jabber.password: Configures the password that is used to connect to the jabber server.
  • jabber.hostname: Configures the host name of the jabber server.
  • jabber.priority: Configures the priority by which messages are distributed to this client.
  • jabber.name: Configures the name of the transport service. A name should be assigned if the space instance uses multiple transport services.
  • jabber.isdefault: Configures if the transport service is used by default for connecting to other workers (one service should be configured as default, if multiple transport services are used).
Here is an example:
var space = new XcoAppSpace("jabber.jid=xco001@jabber.org/res001;jabber.password=xco001;jabber.name=jabberservice;jabber.isdefault=true");

Fluent Inferface

Currently the fluent interface for the jabber transport service only provides two methods:
  • WithName(string name): Configures the name of the transport service. A name should be assigned if the space instance uses multiple transport services.
  • AsDefault(): Configures that the transport service is used by default for connecting to other workers (one service should be configured as default, if multiple transport services are used).
  • WithSerializer(string name): Allows defining which serializer is used for this transport service, if there are multiple named serializers defined for this appspace instance (use the .WithName() fluent config method to define the serializer name). Note: this is only needed if you have multiple transport services, and want to communicate using a different serializer for each of them.
The actual jabber settings can currently not be configured with the fluent interface, but you can use one of the constructors of the XcoJabberTransportService instead.
Here is an example:
XcoAppSpace space = XcoAppSpace.Configure.UsingService(new XcoJabberTransportService("xco001@jabber.org/res001","xco001","xmpp.ag-software.de")).WithName("jabberservice").AsDefault();

Last edited Dec 21, 2012 at 12:58 PM by thomass, version 4

Comments

No comments yet.