Download WADE USER GUIDE
Transcript
WADE USER GUIDE
In order to do that it is sufficient to put a simple property file named <applicationname>.properties into the projects/ directory. This property file is mainly intended to
specify the project-home property that must point to where the project (i.e. the application) is
located on the disk. At this point the application Main Container can be launched by typing
startMain <application-name>
A similar command line can be used in Linux.
Figure 10 provides an example showing how the project property file and the types.xml file of a
Book Trading WADE based application can look like. With reference to that example the book
trading Main Container can be launched by typing
startMain booktrading
C/
|---wade/
|---...
|---bin/
|---startMain.bat
|---startBootDaemon.bat
|---...
|---cfg/
|---lib/
|---wade.jar WADE
|---jade.jar libraries only
|---...
|---log/
|---projects/
|---booktrading.properties
|---...
|
|---...
|
|---bookTr/
|---src/
|---workflow/
|---src
project-home=C:\bookTr
...
...
<agentType description="Control Agent"
...>
<properties>
...
<property name="class-loader-root"
value="${project-home}/deploy"/>
</properties>
</agentType>
<agentType description="Configuration Agent"
...>
<properties>
<property name="configurationsPath"
value="${project-home}/cfg/configuration"/>
</properties>
</agentType>
...
Book Trading
workflow sources
(if any)
|---classes/
|---cfg/
|---main.properties
Book Trading
|---types.xml
project
|---...
configurations
|---configuration/
|---bookTrading.xml
|---lib/
Book Trading
|---bookTrading.jar
project libraries
|---...
|---log/
|---deploy/
|---... Book Trading project workflows
|
|---...
Figure 10. Project property file
The meaning of the class-loader-root property of the Control Agent type is described
in more details in next section.
Finally it should be noticed that, while the Main Container is actually part of the application and
therefore must be launched specifying the project name as described above, the BootDaemon is
fully independent from the application and will always be launched by simply typing
startBootdaemon
21