eventAppli
and a rerouting External Communication to communicate with the second instancepublishAppli
and a rerouting External Communication to communicate with the first instancePublishModule
module increments or decrements a value cyclicallyEventModule
module allows to click on a toggle to set if the first module should increment or decrement the value, and shows the valueeventAppli
and a rerouting External Communication to communicate with the second instancepublishAppli
and a rerouting External Communication to communicate with the first instanceservices
or types
configuration of the first tutorial, but we will duplicate the EventModule
in the applications configuration. We will have two framework instances in the eventAppli
application: And two applications:eventAppli
application and a rerouting External CommunicationpublishAppli
application and a rerouting External CommunicationeventAppli
and publishAppli
applications will have exactly the same implementation as our previous first tutorial:eventAppli
application and a rerouting External Communication.
<applications> <application name="eventAppli"> <deployment> <lib url="samplesEvents.jar" /> </deployment> <modules> <module name="EventModule"> <implementation path="org.da.samples.protoframework.event.EventModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> </implementation> <interfaces> <eventSend service="event"/> <subscribe service="published" /> </interfaces> </module> </modules> </application> <application name="externalCommEvent"> <deployment> <lib url="externalComm.jar" /> </deployment> <modules> <module name="externalComm"> <interfaces> <eventReceived service="event"/> <push service="published"/> </interfaces> </module> </modules> </application> </applications>
<network> <channel name="event" type="input" port="8080" > <service name="published" /> </channel> <channel name="publish" type="output" port="8081"> <service name="event" /> </channel> </network>
<properties> <application name="externalCommEvent" > <module name="externalComm" > <moduleProperty key="network" value="networkEvent.xml" /> </module> </application> </properties>
publishAppli
application and a rerouting External Communication.
<applications> <application name="publishAppli"> <deployment> <lib url="samplesPublish.jar" /> </deployment> <modules> <module name="PublishModule"> <implementation path="org.da.samples.protoframework.publish.PublishModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> <defaultSendEntryPoint method="publish" /> </implementation> <interfaces> <eventReceived service="event"/> <cyclic service="published" frequency="200ms" attach="attach"/> </interfaces> </module> </modules> </application> <application name="externalCommPublish"> <deployment> <lib url="externalComm.jar" /> </deployment> <modules> <module name="externalComm" > <interfaces> <eventSend service="event"/> <subscribe service="published"/> </interfaces> </module> </modules> </application> </applications>
<network> <channel name="event" type="output" port="8080" > <service name="published" /> </channel> <channel name="publish" type="input" port="8081"> <service name="event" /> </channel> </network>
<properties> <properties> <application name="externalCommPublish" > <module name="externalComm" > <moduleProperty key="network" value="networkPublish.xml" /> </module> </application> </properties>
<files> <file url="applicationsEvent.xml" /> <file url="services.xml" /> <file url="types.xml" /> <file url="propertiesEvent.xml" /> </files>For the Publish framework instance:
<files> <file url="applicationsPublish.xml" /> <file url="services.xml" /> <file url="types.xml" /> <file url="propertiesPublish.xml" /> </files>
java -jar protoframework.jar config=<filelist file>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence