This sections explains how to configure WSO2 Data Analytics Server (WSO2 DAS) with WSO2 EMM in a production environment, to publish events. Follow the steps given below:
- Port offset WSO2 DAS by 1 and start the server. There are two ways to set an offset to a port:
Pass the port offset to the server during startup. The following command starts the server with the default port incremented by 1.
Set the Ports section of the
<EMM_HOME>/repository/conf/carbon.xmlfile as follows:
Once you have port offset start WSO2 DAS using the following command.
- Configure the
device-analytics-config.xmlfile that is in the
Enable the settings by assigning
trueas the value within the
ReceiverServerURL: The URL must be in the
protocol://hostname:portformat. Since you port offset WSO2 DAS, make sure to update the port accordingly.
tcp://localhost:7611if you have not port offset and
tcp://localhost:7611+nif you have port offset by n.
AdminUsername: Provide the administrator username. The default username is
AdminPassword: Provide the password of the administrator. The default password is
Example: Single receiver
<EMM_HOME>/repository/conf/analytics/analytics-data-config.xmlfile to specify the data service access mode and the URL.
There are three data service access modes, such as
AUTO. WSO2 EMM only supports the
In the REMOTE mode the Analytics API only accesses the Analytics Data Services OSGI service in a remote instance. This mode is suitable when the node is a lightweight node and does not contain an Analytics Data Services OSGi service. Fore more information on the configurations that need to take place after the node is set, see WSO2 DAS documentation on configuring the connection related parameters.
- Provide the URL of WSO2 DAS after it was port offset.
Creating an event stream and receiver.Click here for more information on creating an event stream and receiver.