Copying product specific cdm-config.xml for enabling custom PushNotificationProviders such as XMPP, MQTT

application-manager-new
Rasika Perera 8 years ago
parent bb29f61dbe
commit d01f58186d

@ -894,10 +894,12 @@
<filtered>true</filtered> <filtered>true</filtered>
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>
<!--cdm config file--> <!-- Copying product specific cdm-config.xml for enabling custom PushNotificationProviders such as
XMPP, MQTT which are disabled by default.
-->
<file> <file>
<source> <source>
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cdm-config.xml src/repository/conf/cdm-config.xml
</source> </source>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
<filtered>true</filtered> <filtered>true</filtered>

@ -18,44 +18,54 @@
--> -->
<DeviceMgtConfiguration> <DeviceMgtConfiguration>
<ManagementRepository> <ManagementRepository>
<DataSourceConfiguration> <DataSourceConfiguration>
<JndiLookupDefinition> <JndiLookupDefinition>
<Name>jdbc/DM_DS</Name> <Name>jdbc/DM_DS</Name>
</JndiLookupDefinition> </JndiLookupDefinition>
</DataSourceConfiguration> </DataSourceConfiguration>
</ManagementRepository> </ManagementRepository>
<IdentityConfiguration> <PushNotificationProviders>
<ServerUrl>https://localhost:9443</ServerUrl> <Provider>org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.MQTTBasedPushNotificationProvider</Provider>
<AdminUsername>admin</AdminUsername> <Provider>org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.XMPPBasedPushNotificationProvider</Provider>
<AdminPassword>admin</AdminPassword> </PushNotificationProviders>
</IdentityConfiguration> <IdentityConfiguration>
<PolicyConfiguration> <ServerUrl>https://localhost:9443</ServerUrl>
<MonitoringClass>org.wso2.carbon.policy.mgt</MonitoringClass> <AdminUsername>admin</AdminUsername>
<MonitoringEnable>false</MonitoringEnable> <AdminPassword>admin</AdminPassword>
<MonitoringFrequency>60000</MonitoringFrequency> </IdentityConfiguration>
<MaxRetries>5</MaxRetries> <PolicyConfiguration>
<MinRetriesToMarkUnreachable>8</MinRetriesToMarkUnreachable> <MonitoringClass>org.wso2.carbon.policy.mgt</MonitoringClass>
<MinRetriesToMarkInactive>20</MinRetriesToMarkInactive> <MonitoringEnable>true</MonitoringEnable>
</PolicyConfiguration> <MonitoringFrequency>60000</MonitoringFrequency>
<TaskConfiguration> <MaxRetries>5</MaxRetries>
<Enable>false</Enable> <MinRetriesToMarkUnreachable>8</MinRetriesToMarkUnreachable>
<Frequency>600000</Frequency> <MinRetriesToMarkInactive>20</MinRetriesToMarkInactive>
<TaskClass>org.wso2.carbon.device.mgt.core.task.impl.DeviceDetailsRetrieverTask</TaskClass> </PolicyConfiguration>
<Operations> <TaskConfiguration>
<Operation> <Enable>true</Enable>
<Name>DEVICE_INFO</Name> <Frequency>600000</Frequency>
<RecurrentTimes>1</RecurrentTimes> <TaskClass>org.wso2.carbon.device.mgt.core.task.impl.DeviceDetailsRetrieverTask</TaskClass>
</Operation> <Operations>
<Operation> <Operation>
<Name>APPLICATION_LIST</Name> <Name>DEVICE_INFO</Name>
<RecurrentTimes>5</RecurrentTimes> <RecurrentTimes>1</RecurrentTimes>
</Operation> </Operation>
<Operation> <Operation>
<Name>DEVICE_LOCATION</Name> <Name>APPLICATION_LIST</Name>
<RecurrentTimes>1</RecurrentTimes> <RecurrentTimes>5</RecurrentTimes>
</Operation> </Operation>
</Operations> <Operation>
</TaskConfiguration> <Name>DEVICE_LOCATION</Name>
<RecurrentTimes>1</RecurrentTimes>
</Operation>
</Operations>
</TaskConfiguration>
<!-- Default Page size configuration for paginated DM APIs-->
<PaginationConfiguration>
<DeviceListPageSize>20</DeviceListPageSize>
<NotificationListPageSize>20</NotificationListPageSize>
<ActivityListPageSize>20</ActivityListPageSize>
<OperationListPageSize>20</OperationListPageSize>
</PaginationConfiguration>
</DeviceMgtConfiguration> </DeviceMgtConfiguration>

Loading…
Cancel
Save