Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2908 - in development/main/depot: console/etc/bin console/src/main/net/dpml/depot/unit test/mexico/src/main/net/dpml/test/mexico

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2908 - in development/main/depot: console/etc/bin console/src/main/net/dpml/depot/unit test/mexico/src/main/net/dpml/test/mexico
  • Date: Thu, 23 Jun 2005 06:54:40 -0400

Author: mcconnell AT dpml.net
Date: Thu Jun 23 06:54:38 2005
New Revision: 2908

Modified:
development/main/depot/console/etc/bin/rmid-process.bat

development/main/depot/console/src/main/net/dpml/depot/unit/DepotStorageUnit.java

development/main/depot/test/mexico/src/main/net/dpml/test/mexico/Server.java
Log:
add test for server activation

Modified: development/main/depot/console/etc/bin/rmid-process.bat
==============================================================================
--- development/main/depot/console/etc/bin/rmid-process.bat (original)
+++ development/main/depot/console/etc/bin/rmid-process.bat Thu Jun 23
06:54:38 2005
@@ -24,7 +24,7 @@

:RUN_RMID
@echo on
-rmid -log %DPML_HOME%\Data\logs\rmid -J%$BOOTCLASSPATH% -J%$POLICY%
-J%$TRANSIT% -J%$TRACE%
+rmid -log %DPML_HOME%\Data\logs\rmid -J%$BOOTCLASSPATH% -J%$POLICY%
-J%$TRANSIT% -J%$TRACE% -C%$BOOTCLASSPATH% -C%$POLICY% -C%$TRANSIT%
@echo off

goto EndOfScript

Modified:
development/main/depot/console/src/main/net/dpml/depot/unit/DepotStorageUnit.java
==============================================================================
---
development/main/depot/console/src/main/net/dpml/depot/unit/DepotStorageUnit.java
(original)
+++
development/main/depot/console/src/main/net/dpml/depot/unit/DepotStorageUnit.java
Thu Jun 23 06:54:38 2005
@@ -124,12 +124,13 @@
prefs.putBoolean( "command", true );
}

- private void setupMexicoProfile()
+ private void setupMexicoProfile()
{
String id = "mexico";
- Preferences prefs = getPreferences().node( "profiles" ).node( id );
- prefs.put( "uri",
"artifact:plugin:dpml/test/dpml-test-mexico#SNAPSHOT" );
- prefs.put( "title", "Depot Server Test" );
+ Preferences prefs = getPreferences().node( "groups" ).node( "demo"
).node( "profiles" ).node( id );
+ prefs.put( "uri", "artifact:jar:dpml/test/dpml-test-mexico#SNAPSHOT"
);
+ prefs.put( "title", "Depot Activation Test" );
+ prefs.put( "classname", "net.dpml.test.mexico.Server" );
}

private void setupMetroProfile()

Modified:
development/main/depot/test/mexico/src/main/net/dpml/test/mexico/Server.java
==============================================================================
---
development/main/depot/test/mexico/src/main/net/dpml/test/mexico/Server.java
(original)
+++
development/main/depot/test/mexico/src/main/net/dpml/test/mexico/Server.java
Thu Jun 23 06:54:38 2005
@@ -5,21 +5,24 @@
import java.rmi.RemoteException;
import java.rmi.MarshalledObject;
import java.rmi.server.UnicastRemoteObject;
+import java.rmi.activation.Activatable;
+import java.rmi.activation.ActivationID;
+import java.rmi.MarshalledObject;

import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.LinkedList;
import java.util.prefs.Preferences;

-public class Server extends UnicastRemoteObject implements Service
+public class Server extends Activatable implements Service
{
private int m_count = 0;
private final Logger m_logger = Logger.getLogger( "mexico" );
private LinkedList m_listeners = new LinkedList();

- public Server() throws RemoteException
+ public Server( ActivationID id, MarshalledObject data ) throws
RemoteException
{
- super();
+ super( id, 0 );
Preferences prefs = Preferences.userNodeForPackage( Server.class );
m_count = prefs.getInt( "count", 0 );
}



  • svn commit: r2908 - in development/main/depot: console/etc/bin console/src/main/net/dpml/depot/unit test/mexico/src/main/net/dpml/test/mexico, mcconnell, 06/23/2005

Archive powered by MHonArc 2.6.24.

Top of Page