public interface ConnectionModeConstants
Various connection modes can be used by clients to find the root Application Module deployed using the Visigenic ORB. The modes that can be used are:
JboContext
         instead. 
 // Component deployed to Visibroker connecting in Naming Service mode
    public static void setRemoteVbEnv()  {
       env.put(JboContext.INITIAL_CONTEXT_FACTORY,
                            JboContext.JBO_CONTEXT_FACTORY);
       env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_VB);
       env.put(JboContext.CONNECTION_MODE,
                            new Integer(ConnectionModeConstants.REMOTE));
       env.put(JboContext.APPLICATION_PATH, "RemoteAlias");
    }
 
 where the RemoteAlias is the named service which is aliased by using the startNamingService.bat file.
 // Component deployed to Visibroker connecting in Use Binding mode
    public static void setBindVbEnv()  {
       env.put(JboContext.INITIAL_CONTEXT_FACTORY,
                            JboContext.JBO_CONTEXT_FACTORY);
       env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_VB);
       env.put(JboContext.CONNECTION_MODE,
                            new Integer(ConnectionModeConstants.USE_BIND));
       env.put(JboContext.HOST_NAME, hostName);
     }
 
 
 // Component deployed to Visibroker connecting in Colocate mode
    public static void setColocatedVbEnv()  {
       env.put(JboContext.INITIAL_CONTEXT_FACTORY,
                              JboContext.JBO_CONTEXT_FACTORY);
       env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_VB);
       env.put(JboContext.CONNECTION_MODE,
                              new Integer(ConnectionModeConstants.COLOCATE));
 
 JboContext| Modifier and Type | Field and Description | 
|---|---|
| static int | COLOCATEIndicates that client and server are executing in the same JVM. | 
| static int | LOCALDeprecated. 
 Use  JboContextinstead. | 
| static int | REMOTEIndicates that a naming service is to be used. | 
| static int | USE_BINDIndicates that remote applets are to use BIND. | 
| static int | USE_IORIndicates that IOR is to be used. | 
static final int LOCAL
JboContext instead.static final int COLOCATE
static final int REMOTE
static final int USE_IOR
static final int USE_BIND