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