Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2276 - development/main/transit/core/handler/src/main/net/dpml/transit

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: r2276 - development/main/transit/core/handler/src/main/net/dpml/transit
  • Date: Wed, 13 Apr 2005 09:37:12 -0400

Author: mcconnell AT dpml.net
Date: Wed Apr 13 09:37:09 2005
New Revision: 2276

Modified:

development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
Log:
Fix transit server flag test logic.

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/SecuredTransitContext.java
Wed Apr 13 09:37:09 2005
@@ -154,7 +154,10 @@
*/
private URL m_authorativeHost;

- private boolean m_server;
+ /**
+ * Server mode flag.
+ */
+ private boolean m_server = false;

/**
* Return the singleton context.
@@ -242,12 +245,10 @@
catch( RemoteException e )
{
// Ignore and continue
- System.out.println( "SJM: Could not find the
RemoteCacheHandler." );
}

// proceed with context establishment

-
try
{
URL authorative = establishAuthority( monitor );
@@ -276,9 +277,10 @@
public void setServer( boolean serverMode )
throws TransitException
{
- m_server = serverMode;
- if( m_server ^ serverMode ) // Is there a change?
+ boolean current = m_server;
+ if( current ^ serverMode )
{
+ m_server = serverMode;
if( m_server )
{
bindServer();
@@ -754,7 +756,11 @@
RemoteCacheHandler rch = new RemoteCacheHandler( lch );
Registry reg = LocateRegistry.getRegistry( 1099 );
reg.bind( TRANSIT_NAME, rch );
- System.out.println( "# server registered on port 1099 as: " +
TRANSIT_NAME );
+ final String message =
+ "Server registered on port 1099 as ["
+ + TRANSIT_NAME
+ + "].";
+ monitor.trace( message );
}
catch( Throwable e )
{



  • svn commit: r2276 - development/main/transit/core/handler/src/main/net/dpml/transit, mcconnell, 04/12/2005

Archive powered by MHonArc 2.6.24.

Top of Page