当前位置: 首页>>代码示例>>Java>>正文


Java ORBConstants.SERVER_NAME_PROPERTY属性代码示例

本文整理汇总了Java中com.sun.corba.se.impl.orbutil.ORBConstants.SERVER_NAME_PROPERTY属性的典型用法代码示例。如果您正苦于以下问题:Java ORBConstants.SERVER_NAME_PROPERTY属性的具体用法?Java ORBConstants.SERVER_NAME_PROPERTY怎么用?Java ORBConstants.SERVER_NAME_PROPERTY使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.corba.se.impl.orbutil.ORBConstants的用法示例。


在下文中一共展示了ORBConstants.SERVER_NAME_PROPERTY属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ServerTableEntry

ServerTableEntry( ActivationSystemException wrapper,
    int serverId, ServerDef serverDef, int initialPort,
    String dbDirName, boolean verify, boolean debug )
{
    this.wrapper = wrapper ;
    this.serverId = serverId;
    this.serverDef = serverDef;
    this.debug = debug ;
    // create a HashMap with capacity 255
    // Since all methods are synchronized, we don't need any
    // additional synchronization mechanisms
    orbAndPortInfo = new HashMap(255);

    activateRetryCount = 0;
    state = ACTIVATING;

    // compute the activation command
    activationCmd =

        // add path to the java vm
        javaHome + fileSep + "bin" + fileSep + "java " +

        // add any arguments to the server Java VM
        serverDef.serverVmArgs + " " +

        // add ORB properties
        "-Dioser=" + System.getProperty( "ioser" ) + " " +
        "-D" + ORBConstants.INITIAL_PORT_PROPERTY   + "=" + initialPort + " " +
        "-D" + ORBConstants.DB_DIR_PROPERTY         + "=" + dbDirName + " " +
        "-D" + ORBConstants.ACTIVATED_PROPERTY      + "=true " +
        "-D" + ORBConstants.SERVER_ID_PROPERTY      + "=" + serverId + " " +
        "-D" + ORBConstants.SERVER_NAME_PROPERTY    + "=" + serverDef.serverName + " " +
        // we need to pass in the verify flag, so that the server is not
        // launched, when we try to validate its definition during registration
        // into the RepositoryImpl

        (verify ? "-D" + ORBConstants.SERVER_DEF_VERIFY_PROPERTY + "=true ": "") +

        // add classpath to the server
        "-classpath " + classPath +
        (serverDef.serverClassPath.equals("") == true ? "" : pathSep) +
        serverDef.serverClassPath +

        // add server class name and arguments
        " com.sun.corba.se.impl.activation.ServerMain " + serverDef.serverArgs

        // Add the debug flag, if any
        + (debug ? " -debug" : "") ;

    if (debug) System.out.println(
                                  "ServerTableEntry constructed with activation command " +
                                  activationCmd);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:53,代码来源:ServerTableEntry.java


注:本文中的com.sun.corba.se.impl.orbutil.ORBConstants.SERVER_NAME_PROPERTY属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。