hammant 2003/04/27 12:11:51
Modified: . build.xml
Added: src/conf autopublishing-demo-assembly.xml
autopublishing-demo-config.xml
Log:
start of autopublishing example
Revision Changes Path
1.15 +24 -0 incubator-altrmi/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/incubator-altrmi/build.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- build.xml 27 Apr 2003 17:27:39 -0000 1.14
+++ build.xml 27 Apr 2003 19:11:50 -0000 1.15
@@ -604,6 +604,30 @@
</lib>
</sar>
+
+ <sar sarfile="${build.lib}/autopublishing-demo.sar"
+ config="${src.dir}/conf/autopublishing-demo-config.xml"
+ environment="${src.dir}/conf/publishing-demo-environment.xml"
+ assembly="${src.dir}/conf/autopublishing-demo-assembly.xml">
+
+ <lib dir="${build.lib}/">
+ <include name="publishing-helloworld.jar"/>
+ </lib>
+
+ <lib dir="lib/optional/examples">
+ <include name="cornerstone.jar"/>
+ </lib>
+
+ <lib dir="${build.lib}">
+ <include name="altrmi-common-${version}.jar"/>
+ <include name="altrmi-server-interfaces-${version}.jar"/>
+ <include name="altrmi-server-impl-${version}.jar"/>
+ <include name="altrmi-generator-${version}.jar"/>
+ <include name="altrmi-blocks-${version}.jar"/>
+ <include name="altrmi-registry-${version}.jar"/>
+ </lib>
+
+ </sar>
</target>
1.1
incubator-altrmi/src/conf/autopublishing-demo-assembly.xml
Index: autopublishing-demo-assembly.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE assembly PUBLIC "-//PHOENIX/Assembly DTD Version 1.0//EN"
"http://jakarta.apache.org/avalon/dtds/phoenix/assembly_1_0.dtd">
<assembly>
<!-- The Connection Manager block -->
<block
class="org.apache.avalon.cornerstone.blocks.connection.DefaultConnectionManager"
name="connections">
<provide name="thread-manager"
role="org.apache.avalon.cornerstone.services.threads.ThreadManager" />
</block>
<!-- The ThreadManager block -->
<block
class="org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager"
name="thread-manager" />
<!-- The Socket Manager block -->
<block
class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager"
name="sockets" />
<!-- -->
<!-- Below is publication and publication -->
<!-- -->
<block class="org.apache.altrmi.blocks.authentication.DefaultAuthenticator"
name="altrmi-authenticator" >
</block>
<block class="org.apache.altrmi.blocks.publishing.SocketStreamPublisher"
name="altrmi-publisher" >
<provide name="sockets"
role="org.apache.avalon.cornerstone.services.sockets.SocketManager"/>
<provide name="connections"
role="org.apache.avalon.cornerstone.services.connection.ConnectionManager" />
<provide name="altrmi-authenticator"
role="org.apache.altrmi.server.Authenticator"/>
</block>
<!-- -->
<!-- Below this section are the demo blocks -->
<!-- -->
<block
class="org.apache.altrmi.examples.blockpublishing.HelloWorldServerImpl"
name="helloworldserver" >
<!-- needs nothing -->
</block>
<!-- -->
<!-- Here is the auto-publisher -->
<!-- -->
<listener class="org.apache.altrmi.blocks.autopublishing.AutoPublisher"
name="altrmification-listener"/>
</assembly>
1.1 incubator-altrmi/src/conf/autopublishing-demo-config.xml
Index: autopublishing-demo-config.xml
===================================================================
<?xml version="1.0"?>
<config>
<thread-manager>
<thread-group>
<name>default</name>
<!-- normal priority == 5, max-priority = 10 -->
<priority>5</priority>
<!-- are threads deamon threads ? -->
<is-daemon>false</is-daemon>
<max-threads>40</max-threads>
<!-- these are ignored at the moment but will be fixed in later
revisions -->
<min-threads>20</min-threads>
<min-spare-threads>20</min-spare-threads>
</thread-group>
</thread-manager>
<sockets>
<server-sockets>
<factory name="plain"
class="org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory"
/>
</server-sockets>
<client-sockets>
<factory name="plain"
class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketFactory" />
</client-sockets>
</sockets>
<helloworldserver/>
<altrmi-publisher>
<port>8667</port>
<bind>127.0.0.1</bind>
<socketObjectStreamHandler>
<connectiontimeout>360000</connectiontimeout>
</socketObjectStreamHandler>
<classRetrieverType>jarFile</classRetrieverType>
<socketStreamServerClass>org.apache.altrmi.server.impl.socket.PartialSocketObjectStreamServer</socketStreamServerClass>
<generatedClassJarURLs>./HelloWorldAltrmiProxy.jar</generatedClassJarURLs>
</altrmi-publisher>
<altrmi-authenticator/>
<altrmification-listener>
<publisher>altrmi-publisher</publisher>
<publish block="helloworldserver"
interfaceToPublish="org.apache.altrmi.examples.blockpublishing.HelloWorldServer"
publishAsName="helloworld"/>
</altrmification-listener>
</config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]