hammant 2003/04/26 06:05:26
Modified: . default.properties
src/java/org/apache/altrmi/blocks/authentication
DefaultAuthenticator.java
src/test/org/apache/altrmi/test/proxies DynamicProxy.java
Added: src/example/org/apache/altrmi/examples/blockpublishing
AltrmiHelloWorldServer.java
AltrmiHelloWorldServerImpl.java
AltrmiHelloWorldServerImpl.xml
AltrmiHelloWorldServerTester.java
HelloWorldServer.java HelloWorldServerImpl.java
HelloWorldServerImpl.xml package.html
Log:
Start of move of publishing demo to AltRMI module
Revision Changes Path
1.7 +1 -1 incubator-altrmi/default.properties
Index: default.properties
===================================================================
RCS file: /home/cvs/incubator-altrmi/default.properties,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- default.properties 25 Mar 2003 08:07:29 -0000 1.6
+++ default.properties 26 Apr 2003 13:05:25 -0000 1.7
@@ -8,7 +8,7 @@
name=altrmi
Name=AltRMI
dir-name=altrmi
-version=0.9.3
+version=0.9.4
year=2002-2003
project.home=.
1.4 +2 -2
incubator-altrmi/src/java/org/apache/altrmi/blocks/authentication/DefaultAuthenticator.java
Index: DefaultAuthenticator.java
===================================================================
RCS file:
/home/cvs/incubator-altrmi/src/java/org/apache/altrmi/blocks/authentication/DefaultAuthenticator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DefaultAuthenticator.java 17 Feb 2003 20:27:38 -0000 1.3
+++ DefaultAuthenticator.java 26 Apr 2003 13:05:25 -0000 1.4
@@ -53,7 +53,7 @@
* <http://www.apache.org/>.
*/
package org.apache.altrmi.blocks.authentication;
-
//org.apache.avalon.excalibur.altrmi.blocks.authentication.DefaultAuthenticator
+
//org.apache.avalon.excalibur.altrmi.blockpublishing.authentication.DefaultAuthenticator
import org.apache.avalon.framework.activity.Initializable;
import org.apache.altrmi.common.Authentication;
1.4 +2 -2
incubator-altrmi/src/test/org/apache/altrmi/test/proxies/DynamicProxy.java
Index: DynamicProxy.java
===================================================================
RCS file:
/home/cvs/incubator-altrmi/src/test/org/apache/altrmi/test/proxies/DynamicProxy.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DynamicProxy.java 29 Mar 2003 21:48:33 -0000 1.3
+++ DynamicProxy.java 26 Apr 2003 13:05:25 -0000 1.4
@@ -74,7 +74,7 @@
private transient Object m_object;
/**
- * Private constructor that blocks instantiation outside this class.
+ * Private constructor that blockpublishing instantiation outside this
class.
*
* @param object the underlying object
*/
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/AltrmiHelloWorldServer.java
Index: AltrmiHelloWorldServer.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1997-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software
* itself, if and wherever such third-party acknowledgments
* normally appear.
*
* 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.altrmi.examples.blockpublishing;
/**
* @author Paul Hammant
* @version 1.0
*/
public interface AltrmiHelloWorldServer
{
String ROLE = AltrmiHelloWorldServer.class.getName();
}
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/AltrmiHelloWorldServerImpl.java
Index: AltrmiHelloWorldServerImpl.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1997-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software
* itself, if and wherever such third-party acknowledgments
* normally appear.
*
* 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.altrmi.examples.blockpublishing;
import org.apache.avalon.framework.activity.Initializable;
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
import org.apache.altrmi.server.Publisher;
/**
* @phoenix:block
*
* This demo Server applications shows the use of AltRMI to publish the
* HelloWorld block's API to clients over TCP/IP.
*
* HelloWorld would normally mount as just a HTTP hack showing a HTML
* HelloWorld message to suitably forgiving Browsers. With the
* addition of this block and suitably assembled, the HelloWorld
* application is given more life.
*
************************************************************
************************************************************
*
* This is being phased out in favour of AutoPublisher
*
************************************************************
************************************************************
*
* @author Paul Hammant
* @version 1.0
*/
public class AltrmiHelloWorldServerImpl
extends AbstractLogEnabled
implements Serviceable, Configurable, Initializable
{
private HelloWorldServer m_helloWorldServer;
private Publisher m_publisher;
private String m_publicationName;
public void initialize() throws Exception
{
// being phased out.
m_publisher.publish( m_helloWorldServer, m_publicationName,
HelloWorldServer.class );
getLogger().info( "HelloWorldServer published as " +
m_publicationName );
// This is only to help newbies.....
System.out.println( "AltrmiHelloWorld server running. Use
avalon-altrmidemo-tester.jar to connect to and test it" );
}
public void configure( final Configuration configuration )
throws ConfigurationException
{
m_publicationName = configuration.getChild( "pub-name" ).getValue();
}
public void service( final ServiceManager serviceManager )
throws ServiceException
{
m_helloWorldServer = (HelloWorldServer)serviceManager.lookup(
HelloWorldServer.ROLE );
m_publisher = (Publisher)serviceManager.lookup(
Publisher.class.getName() );
}
}
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/AltrmiHelloWorldServerImpl.xml
Index: AltrmiHelloWorldServerImpl.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE blockinfo PUBLIC "-//PHOENIX/Block Info DTD Version 1.0//EN"
"http://jakarta.apache.org/phoenix/blockinfo_1_0.dtd">
<blockinfo>
<!-- section to describe block -->
<block>
<version>1.0</version>
</block>
<!-- No services are offered by this block -->
<services/>
<dependencies>
<dependency>
<service name="org.apache.excalibur.altrmi.server.Publisher"/>
</dependency>
<dependency>
<service
name="org.apache.altrmi.examples.blockpublishing.HelloWorldServer"/>
</dependency>
</dependencies>
</blockinfo>
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/AltrmiHelloWorldServerTester.java
Index: AltrmiHelloWorldServerTester.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1997-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software
* itself, if and wherever such third-party acknowledgments
* normally appear.
*
* 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.altrmi.examples.blockpublishing;
import org.apache.altrmi.client.HostContext;
import org.apache.altrmi.client.impl.ServerSideClassFactory;
import org.apache.altrmi.client.impl.socket.SocketObjectStreamHostContext;
import org.apache.altrmi.common.ConnectionException;
/**
* @author Paul Hammant
* @version 1.0
*/
public class AltrmiHelloWorldServerTester
{
public static void main( String[] args ) throws Exception
{
String newGreeting = "Howdie Partner";
if( args.length != 0 )
{
newGreeting = args[ 0 ];
}
AltrmiHelloWorldServerTester tester = new
AltrmiHelloWorldServerTester();
tester.setGreeting(newGreeting);
}
private String setGreeting(String newGreeting) throws ConnectionException
{
HostContext arhc = new SocketObjectStreamHostContext( "127.0.0.1",
8666 );
ServerSideClassFactory af = new ServerSideClassFactory();
af.setHostContext( arhc );
final HelloWorldServer hws =
(HelloWorldServer)af.lookup( "helloworld" );
String greeting1 = hws.getGreeting();
hws.setGreeting( newGreeting );
String greeting2 = hws.getGreeting();
System.out.println( "The greeting on the HelloWorldServer block has
been changed from '"
+ greeting1 + "' to '" + greeting2);
af.close();
return greeting1 + " : " + greeting2;
}
}
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/HelloWorldServer.java
Index: HelloWorldServer.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1997-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software
* itself, if and wherever such third-party acknowledgments
* normally appear.
*
* 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.altrmi.examples.blockpublishing;
/**
*
* @author Paul Hammant
* @version 1.0
*/
public interface HelloWorldServer {
String ROLE =
"org.apache.altrmi.examples.blockpublishing.HelloWorldServer";
String getGreeting();
void setGreeting(String newGreeting);
}
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/HelloWorldServerImpl.java
Index: HelloWorldServerImpl.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 1997-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software
* itself, if and wherever such third-party acknowledgments
* normally appear.
*
* 4. The names "Incubator", "AltRMI", and "Apache Software Foundation"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.altrmi.examples.blockpublishing;
/**
* @phoenix:block
*
* The world's most simple (and pointless) component?
*
* @author Paul Hammant
* @version 1.0
*/
public class HelloWorldServerImpl implements HelloWorldServer {
String m_greeting = "Hello, Howzit doing?";
public String getGreeting() {
System.out.println("HelloWorldServerImpl.getGreeting() :" +
m_greeting);
return m_greeting;
}
public void setGreeting(String newGreeting) {
m_greeting = newGreeting;
System.out.println("HelloWorldServerImpl.setGreeting() :" +
newGreeting);
}
}
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/HelloWorldServerImpl.xml
Index: HelloWorldServerImpl.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE blockinfo PUBLIC "-//PHOENIX/Block Info DTD Version 1.0//EN"
"http://jakarta.apache.org/phoenix/blockinfo_1_0.dtd">
<blockinfo>
<!-- section to describe block -->
<block>
<version>1.0</version>
</block>
<!-- No services are offered by this block -->
<services/>
<dependencies>
</dependencies>
</blockinfo>
1.1
incubator-altrmi/src/example/org/apache/altrmi/examples/blockpublishing/package.html
Index: package.html
===================================================================
<html><body>
<h1>AltRMI HelloWorld Demo</h1>
<center>By Paul Hammant</center>
<p>This demo reuses the Helloworld component, and retrofits remote capability.
It does this with the autopublisher tool from the Cornerstone project.</p>
<h2>Autopublishing</h2>
<p>The following shows how the HelloWorld demo block depends on
ConnectionManager
from cornerstone. These two blocks packaged as a server application (.SAR
file)
are loaded and launched by Phoenix, itself sitting on top of Avalon's
framework.</p>
<h2>Relevant source modules</h2>
<p>The HelloWorld demo compiles as part of the build process for cornerstone.
The important modules that contribute to the demo are listed here. All are
within
the src directory</p>
<ol>
<li><b>org.apache.avalon.apps.demos.altrmihelloworldserver package</b>
This package contains the Java source the testing block.</li>
<li><b>conf\avalon-altrmidemo-assembly.xml</b> This contains the assembly
instructions for the resulting server archive (sar) file.</li>
<li><b>conf\avalon-altrmidemo-config.xml</b> This contains the configuration
for the resulting server archive (sar) file.</li>
</ol>
<h2>AltrmiHelloWorldServerTester.java - Java Source</h2>
<p>This forms part of an executable jar that allows you to remotely change
the HelloWorld demo block.</p>
<h2>avalon-altrmidemo-assembly xml</h2>
<p>The file is renamed as part of the build process to assembly.xml, and
only has a separate name here to aid development. The bulk of the contents
of the file pertain to other blocks including the HelloWorld one. Here's
the section that's for autopublishing</p>
<pre>
(text snipped)
<listener class="org.apache.altrmi.blocks.autopublishing.AutoPublisher"
name="altrmification-listener"/>
<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>
(text snipped)
</pre>
<p>Autopublisher needs an authenicator (the default), and a publisher
(SocketStreamPublisher).</p>
<h2>avalon-demo-config xml</h2>
<p>The file is renamed as part of the build process to config.xml, and only
has a separate
name here to aid development. Again here is the pertinent section:</p>
<pre>
(text snipped)
<altrmi-publisher>
<port>8666</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>
</altrmi-authenticator>
<altrmification-listener>
<publisher>altrmi-publisher</publisher>
<publish block="helloworldserver"
interfaceToPublish="org.apache.avalon.apps.demos.helloworldserver.HelloWorldServer"
publishAsName="helloworld"/>
</altrmification-listener>
(text snipped)
</pre>
<p>The autopublisher and publisher configuration are here.</p>
</body></html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]