org.huihoo.jfox.jndi
Class ServiceLocator

java.lang.Object
  extended byorg.huihoo.jfox.jndi.ServiceLocator

public class ServiceLocator
extends java.lang.Object

cache and get remote NamingService stub


Constructor Summary
ServiceLocator()
           
 
Method Summary
static NamingService getNamingService(java.lang.String privoderURL)
           
static NamingService getNamingService(java.lang.String host, int port)
          get NamingService Remote Reference from the host:port
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLocator

public ServiceLocator()
Method Detail

getNamingService

public static NamingService getNamingService(java.lang.String host,
                                             int port)
                                      throws javax.naming.CommunicationException
get NamingService Remote Reference from the host:port

Throws:
javax.naming.CommunicationException

getNamingService

public static NamingService getNamingService(java.lang.String privoderURL)
                                      throws javax.naming.CommunicationException
Throws:
javax.naming.CommunicationException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception