ftex.client
Class JndiConnector
java.lang.Object
ftex.client.JndiConnector
- public class JndiConnector
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiConnector
public JndiConnector()
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