Once our application is compiled we need to create a launch descriptor, which is an XML file that allows us to launch the application onto a remote node. We use the jtrixmaker tool:
% jtrixmaker -type beatrix -outfile skeleton-launcher.xml \
-x500dn o=jtrix,cn=skeleton2 -jardirs /home/nik/build/bin \
-jars skeleton2.jar beatrix.jar libjtrix.jar jaxp.jar parser.jar \
facets1.jar \
-access ap \
-codebase ap skeleton2.jar beatrix.jar libjtrix.jar facets1.jar \
-plugins org.jtrix.project.skeleton2.plugins.LifeCyclePlugin
%
The parameters are detailed more in Appendix
,
but meanwhile we have this:
on X.500 names.
.
<!DOCTYPE application PUBLIC "-//jtrix.org//TEXT application-0.1//EN"
"http://www.jtrix.org/dtd/application-0.1.dtd">
<application>
<jar jar_id='beatrix'>
<url>file:/usr/lib/jtrix/beatrix.jar</url>
</jar>
<jar jar_id='skeleton2'>
<url>file:/usr/lib/jtrix/skeleton2.jar</url>
</jar>
<jar jar_id='parser.jar'>
<url>file:/usr/lib/jtrix/parser.jar</url>
</jar>
<jar jar_id='libjtrix'>
<url>file:/usr/lib/jtrix/libjtrix.jar</url>
</jar>
<jar jar_id='facets1.jar'>
<url>file:/usr/lib/jtrix/facets1.jar</url>
</jar>
<jar jar_id='jaxp.jar'>
<url>file:/usr/lib/jtrix/jaxp.jar</url>
</jar>
<codebase codebase_id='ap'>
<element jar_id='beatrix'/>
<element jar_id='skeleton2'/>
<element jar_id='libjtrix'/>
<element jar_id='facets1.jar'/>
</codebase>
<codebase codebase_id='DEFAULT_FOR_ALL'>
<element jar_id='skeleton2'/>
<element jar_id='parser.jar'/>
<element jar_id='jaxp.jar'/>
<element jar_id='beatrix'/>
<element jar_id='libjtrix'/>
<element jar_id='facets1.jar'/>
</codebase>
<boot class='org.jtrix.project.beatrix.plugins.netlets.Manager'
codebase_id='DEFAULT_FOR_ALL'/>
<cmdline>
<argument type="string" name="plugins" required="yes">
org.jtrix.project.skeleton2.plugins.LifeCyclePlugin </argument>
<argument type="x500dn" name="x500" required="yes">
O=jtrix CN=skeleton2</argument>
<argument type="string" name="name" required="yes">
Initial Manager</argument>
</cmdline>
<config>
<![CDATA[
....
]]>
</config>
</application>
This launcher descriptor allows us to launch our application and all
its JARs (referenced in the XML) onto a remote node. See Section
for more details on this.
See Section
for how we use the console to
run our application.
Nik Silver 2002-03-09