Fix issue with cnnecting remote APIM

application-manager-new
charithag 9 years ago
parent b63c062eb8
commit cfcc69b6fc

@ -23,7 +23,8 @@
<![CDATA[
<IotDeviceTypeConfig type="${sample_type}">
<DatasourceName>jdbc/${data_source}</DatasourceName>
<ApiApplicationName>virtual_firealarm</ApiApplicationName>
<!--TODO: Uncomment this to work with apim @ 192.168.67.21 -->
<!--ApiApplicationName>firealarm</ApiApplicationName-->
</IotDeviceTypeConfig>
]]>
</insert>
@ -96,6 +97,8 @@
<delete dir="${target.sketch.dir}/${sample_type}"/>
<delete file="${target.page.dir}/${sample_type}.hbs"/>
<delete dir="${target.unit.dir}/${sample_type}"/>
<delete file="${target.page.dir}/${sample_type}.hbs"/>
<delete dir="${target.unit.dir}/${sample_type}"/>
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
</xmltask>

@ -292,7 +292,7 @@ public class VirtualFireAlarmManagerService {
//create new device id
String deviceId = shortUUID();
TokenClient accessTokenClient = new TokenClient("firealarm");
TokenClient accessTokenClient = new TokenClient(VirtualFireAlarmConstants.DEVICE_TYPE);
AccessTokenInfo accessTokenInfo = null;
accessTokenInfo = accessTokenClient.getAccessToken(owner, deviceId);

Loading…
Cancel
Save