ftex.client
Class JndiConnector

java.lang.Object
  extended byftex.client.JndiConnector

public class JndiConnector
extends java.lang.Object


Constructor Summary
JndiConnector()
           
 
Method Summary
static Broker createBroker(javax.naming.Context cxt)
           
static Broker createBrokerForSure()
           
static Broker createBrokerNormally()
           
static javax.naming.Context createContextForSure()
           
static javax.naming.Context getInitialContext()
           
static javax.naming.Context getJNDIContext()
           
static javax.naming.Context getNewContext(int i)
           
static java.lang.String getServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiConnector

public JndiConnector()
Method Detail

getInitialContext

public static javax.naming.Context getInitialContext()
                                              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getNewContext

public static javax.naming.Context getNewContext(int i)
                                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getServer

public static java.lang.String getServer()

getJNDIContext

public static javax.naming.Context getJNDIContext()

createBroker

public static Broker createBroker(javax.naming.Context cxt)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException

createContextForSure

public static javax.naming.Context createContextForSure()
                                                 throws NoServersAvailableException
Throws:
NoServersAvailableException

createBrokerForSure

public static Broker createBrokerForSure()
                                  throws NoServersAvailableException
Throws:
NoServersAvailableException

createBrokerNormally

public static Broker createBrokerNormally()
                                   throws NoServersAvailableException
Throws:
NoServersAvailableException