This page last changed on Sep 24, 2012 by dberenguer.

Hi guys, I'm back with a new question

I sent Juha a new controller category for Designer called lagarto_network. This category simply contains a config parameter called broadcast:

<category name="lagarto_network">
<description>
<![CDATA[
Configuration for Lagarto network
]]>
</description>
<config name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001">
<hint>
<![CDATA[
Broadcast address and port used by all lagarto servers to publish network events (ZeroMQ pub/sub endpoint).
]]>
</hint>
</config>
</category>

So now I want to read the contents of "broadcast" from my CommandBuilder implementation. Juha told me to add a <property> under our CommandBuilder in applicationContext.xml

<!-- Lagarto Command Builder for SWAP (panStamp) devices and other technologies -->
<bean id = "lagartoCommandBuilder" class = "org.openremote.controller.protocol.lagarto.LagartoCommandBuilder">
<property name="broadcast" ref="broadcast"/>
</bean>

But I'm not sure about ref="broadcast". Finally, I'll have to read the contents of "broadcast" from LagartoCommandBuilder or LagartoCommand... but I have not a clear idea about how to accomplish this.

Thanks again!

Daniel.

Document generated by Confluence on Jun 05, 2016 09:31