Documentation Contents

orbd - The Object Request Broker Daemon

orbd ?????????????????????????????? CORBA ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????: ?????????????????????

??????

orbd <options>

??????

orbd ?????????????????????????????????????????????????????????????????????????????????????????? CORBA ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? OBRD ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ORBD ?????????????????????????????????????????????????????????????????????????????????

ORBD ???????????????????????????????????????????????????????????????servertool ?????????????????????????????????????????????????????????????????? servertool ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

orbd ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

???????????????

?????????????????????

-ORBInitialPort nameserverport
???????????????????????????????????????????????????????????????????????????orbd ?????????????????????????????????????????????????????????????????????????????????Solaris ????????????????????????????????????1024 ???????????????????????????????????????????????????????????????root ????????????????????????????????????????????? ???????????????1024 ????????? 1024 ????????????????????????????????????????????????????????????????????? (??????)

???????????????????????????

-port port
ORBD ????????????????????????????????????????????? ORBD ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 1049 ????????? ?????????????????????????????? Interoperable Object References (IOR) ???????????????????????????????????????????????????(?????????)
-defaultdb directory
ORBD ?????????????????????????????? orb.db ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????./orb.db?????????????????????(?????????)
-serverPollingTime milliseconds
servertool ??????????????????????????????????????????????????????????????????????????????????????? ORBD ??????????????????????????????????????????????????????????????? 1,000 ?????????????????? ?????????????????????????????????????????????????????????????????????????????????(?????????)
-serverStartupDelay milliseconds
servertool ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ORBD ????????????????????????????????????????????????????????? 1,000 ?????????????????? ?????????????????????????????????????????????????????????????????????????????????(?????????)
-Joption
Java ?????????????????? option ?????????????????? option ????????????Java ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 1 ????????????????????????????????????-J-Xms48m ????????????????????????????????????????????????????????? 48M ?????????????????????????????????-J ???????????????????????????????????????????????????????????????????????????????????????????????????

???????????????????????????????????????

???????????????????????????CORBA ?????????????????????????????????????????????????????? CORBA ????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

ORBD ????????????????????????????????????????????????????????????????????????????????????ORBD ????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????? COS ???????????????????????????????????????

???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ORBD ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

 

???????????????????????????????????????????????? JDK ????????????????????????????????????????????????????????????????????????????????? J2SE ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

-ORBInitialPort ????????????orbd ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Java IDL Object Request Broker Daemon ??????????????? 1050 ??????????????????????????????????????????????????????Solaris ????????????????????????????????????1024 ??????????????????????????????????????????????????????????????????root ????????????????????????????????????????????? ???????????????1024 ????????? 1024 ?????????????????????????????????????????????????????????????????????

UNIX ???????????????????????? orbd ?????????????????????????????????????????????????????????

  orbd -ORBInitialPort 1050&

Windows ??? MS-DOS ?????????????????????????????????????????????????????????????????????

  start orbd -ORBInitialPort 1050

????????? ORBD ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? (???????????????????????????????????????) ?????????????????????????????????????????????????????????????????? 1 ??????????????????????????????????????????????????????????????????????????????????????????

        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
        props.put("org.omg.CORBA.ORBInitialHost", "MyHost");
        ORB orb = ORB.init(args, props);

?????????????????????????????????????????????????????? MyHost ???????????? 1050 ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????HelloApplication???????????????????????????

     java HelloApplication -ORBInitialPort 1050 -ORBInitialHost MyHost

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????Solaris ?????? pkill orbd ???????????????orbd ???????????????????????? DOS ????????????????????? Ctrl+C ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Java IDL ?????????????????????????????????????????????????????????????????????????????????

ORDB ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

??????????????????????????????

ORBD ????????????????????????????????????????????????????????????????????????????????????????????????servertool ?????????????????????????????????????????????????????????????????? servertool ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????servertool ??????????????????????????????????????????????????????orbd ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

??????????????????????????????:???

?????????????????????????????????????????????????????????????????????????????????????????????????????????idlj ?????????????????? javac ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

orbd ?????????????????????

UNIX ???????????????????????? orbd ?????????????????????????????????????????????????????????

 

  orbd -ORBInitialPort 1050 

Windows ??? MS-DOS ?????????????????????????????????????????????????????????????????????

  start orbd -ORBInitialPort 1050

1050 ?????????????????????????????????????????????????????????-ORBInitialPort ?????????????????????????????????????????????Solaris ????????????????????????????????????1024 ??????????????????????????????????????????????????????????????????root ????????????????????????????????????????????? ???????????????1024 ????????? 1024 ?????????????????????????????????????????????????????????????????????

servertool ?????????????????????

Hello ?????????????????????????????????????????????????????????????????????

  servertool -ORBInitialPort 1050

???????????????????????????????????????????????? (orbd) ????????????????????????????????? ???????????? -ORBInitialPort 1050 ???????????????????????????servertool ???????????????????????????????????????????????????????????????????????????????????????

servertool ????????????????????????????????????????????????????????????

servertool ????????????????????? Hello ?????????????????????????????????

  servertool  > register -server HelloServer -classpath . -applicationName
                HelloServerApName

servertool ????????????????????????????????????????????????HelloServerApName????????????????????????????????????????????????????????????????????? ID ????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

 

  java HelloClient -ORBInitialPort 1050 -ORBInitialHost localhost

???????????? -ORBInitialHost localhost ??????????????????????????????????????? ???????????????????????? Hello ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IDL ?????????????????????????????????????????????????????? -ORBInitialHost nameserverhost ?????????????????????

???????????????????????????????????????????????? (orbd) ????????????????????????????????? ???????????? -ORBInitialPort 1050 ???????????????????????????

 

 

????????????????????????????????????????????????????????????????????????????????? (orbd) ??? servertool ?????????????????????????????????????????????

DOS ?????????????????? orbd ?????????????????????????????????????????????????????????????????????????????????????????????????????? Ctrl+C ?????????????????????UNIX ???????????? orbd ???????????????????????????????????????????????????????????????????????? (kill) ?????????????????????????????????????????????????????????????????????????????????????????????????????????

servertool ???????????????????????????????????????quit ????????????????????????????????? Enter ????????????????????????

????????????



Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved.

Please send comments using this Feedback page.
Sun Microsystems, Inc.
Java Technology