notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1908 - development/main/transit/core/handler/src/main/net/dpml/transit/artifact
- From: mcconnell AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1908 - development/main/transit/core/handler/src/main/net/dpml/transit/artifact
- Date: Sat, 26 Feb 2005 01:56:42 +0100
Author: mcconnell
Date: Sat Feb 26 01:56:42 2005
New Revision: 1908
Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/artifact/SecuredTransitContext.java
Log:
make correction to how names are using with jndi
Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/artifact/SecuredTransitContext.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/artifact/SecuredTransitContext.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/artifact/SecuredTransitContext.java
Sat Feb 26 01:56:42 2005
@@ -131,9 +131,14 @@
private static final String DEFAULT_REMOTE_AUTHORITY =
"http://repository.dpml.net";
/**
- * Transt cahce handler service JNDI name.
+ * Transit cache handler service name.
*/
- private static final String TRANSIT_JNDI_NAME =
"rmi://localhost:1099/transit";
+ private static final String TRANSIT_NAME = "transit";
+
+ /**
+ * Transit cache handler service JNDI name.
+ */
+ private static final String TRANSIT_JNDI_NAME = "rmi://localhost:1099/"
+ TRANSIT_NAME;
//------------------------------------------------------------------
// state
@@ -213,6 +218,7 @@
{
InitialContext context = new InitialContext();
CacheHandler handler = (CacheHandler) context.lookup(
TRANSIT_JNDI_NAME );
+ //CacheHandler handler = (CacheHandler) context.lookup(
"transit" );
if( monitor.isTraceEnabled() )
{
monitor.trace( "binding to shared cache handler" );
@@ -260,7 +266,7 @@
{
LocateRegistry.createRegistry( 1099 );
LocateRegistry.getRegistry().bind(
- TRANSIT_JNDI_NAME,
+ TRANSIT_NAME,
new RemoteCacheHandler( m_CONTEXT.getCacheHandler() ) );
System.out.println( "# server registered on port 1099 as: "
+ TRANSIT_JNDI_NAME );
}
- svn commit: r1908 - development/main/transit/core/handler/src/main/net/dpml/transit/artifact, mcconnell, 02/25/2005
Archive powered by MHonArc 2.6.24.