Package org.jnp.interfaces

Examples of org.jnp.interfaces.Naming


         else
            log.warn(msg);
         IOException e = new IOException(msg);
         throw e;
      }
      Naming namingServer = (Naming) obj;
      return namingServer;
   }
View Full Code Here


/*  70 */       provider = "http:" + provider.substring(9);
/*  71 */     else if (provider.startsWith("jnp-https:") == true) {
/*  72 */       provider = "https:" + provider.substring(10);
/*     */     }
/*  74 */     URL providerURL = null;
/*  75 */     Naming namingServer = null;
/*     */     try
/*     */     {
/*  78 */       providerURL = new URL(provider);
/*     */
/*  80 */       namingServer = getNamingServer(providerURL);
View Full Code Here

/*     */
/* 155 */     String providerUrl = (String)env.get("java.naming.provider.url");
/* 156 */     if (providerUrl == null)
/*     */     {
/* 158 */       throw new RuntimeException("PROVIDER_URL not provided in jndi.properties.  Automatic discovery not implemented yet.");
/*     */     }Naming naming;
/*     */     try {
/* 162 */       naming = (Naming)Remoting.createPojiProxy("JNDI", interfaces, providerUrl, interceptors);
/*     */     }
/*     */     catch (Exception e)
/*     */     {
View Full Code Here

/*     */       else
/* 152 */         log.warn(msg);
/* 153 */       IOException e = new IOException(msg);
/* 154 */       throw e;
/*     */     }
/* 156 */     Naming namingServer = (Naming)obj;
/* 157 */     return namingServer;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object invoke(Invocation invocation)
/*     */     throws Exception
/*     */   {
/* 354 */     Naming theServer = this.namingMain.getNamingInstance();
/*     */
/* 356 */     if ((invocation instanceof MarshalledInvocation))
/*     */     {
/* 358 */       MarshalledInvocation mi = (MarshalledInvocation)invocation;
/* 359 */       mi.setMethodMap(this.marshalledInvocationMapping);
View Full Code Here

      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      Class<?> clazz = cl.loadClass(this.loadBalancePolicy);
      LoadBalancePolicy policy = (LoadBalancePolicy)clazz.newInstance();

      Naming proxy = (Naming) this.rmiserver.createHAStub(policy);
      return proxy;
   }
View Full Code Here

TOP

Related Classes of org.jnp.interfaces.Naming

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.