![]() | Documentation Contents |
orbd ?????????????????????????????? CORBA ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
????????????: ?????????????????????
orbd <options>
orbd ?????????????????????????????????????????????????????????????????????????????????????????? CORBA ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? OBRD ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ORBD ?????????????????????????????????????????????????????????????????????????????????
- ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ORBD ??????????????????????????????????????????????????????????????????????????????????????????????????????
- ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
ORBD ???????????????????????????????????????????????????????????????servertool ?????????????????????????????????????????????????????????????????? servertool ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
orbd ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????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. |
![]() Java Technology |