orbd.1 revision 0
t

Copyright 2001-2006 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).

You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.


orbd 1 "2006 ǯ 9 �� 4 ��" "Java SE 6" "�桼�������ޥ��"
"̾��"
orbd - Object Request Broker �ǡ����

orbd �ϡ����饤����Ȥ� CORBA �Ķ���Υ����С����¸�ߤ��� ��³���֥������Ȥ�Ʃ��Ū�����ꤷ�ƸƤӽФ����˻��Ѥ��ޤ���

\f3��Ϣ����: \f2��Naming Service��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html)

"����"

\f3
.fl
orbd <\f3options\f3>
.fl

"��ǽ����"
\f3orbd �ġ����ޤॵ���С��ޥ͡�����ϡ����饤����Ȥ� CORBA �Ķ���Υ����С����¸�ߤ����³���֥������Ȥ�Ʃ��Ū�����ꤷ�ƸƤӽФ����˻��Ѥ��ޤ�����³�����С��ϡ��͡��ॵ���ӥ���λ�³���֥������Ȼ��Ȥ�ȯ�Ԥ������ǡ����֥������Ȼ�����˥����С��Υݡ����ֹ�ǤϤʤ� ORBD �Υݡ����ֹ���Ȥ߹��ߤޤ�����³���֥������Ȼ��ȤΤ���˥��֥������Ȼ������ ORBD �ݡ����ֹ���Ȥ߹���ȡ��ʲ��������������ޤ���

2 * �͡��ॵ���ӥ���Υ��֥������Ȼ��Ȥϡ������С��Υ饤�ե�������Ȥ�̵�ط��˰ݻ��ޤ������Ȥ��С����֥������Ȼ��Ȥϥ����С��κǽ�Υ��󥹥ȡ�����˥͡��ॵ���ӥ���ǥ����С��ˤ�ä�ȯ�Ԥ��졢���θ�ϲ��٥����С��ε�ư�ޤ�����ߤ��Ԥ��Ƥ� ORBD �Ͼ�˸ƤӽФ�¦�Υ��饤����Ȥ����������֥������Ȼ��Ȥ��֤��ޤ���

2 * ���饤����Ȥϥ͡��ॵ���ӥ���ǥ��֥������Ȼ��Ȥ� 1 �ٳ�ǧ����ɬ�פ����ꡢ�����С��Υ饤�ե������뤬����ǵ������ѹ��˴ط��ʤ����λ��Ȥ򷫤��֤����ѤǤ��ޤ���

ORBD �Υ����С��ޥ͡�����˥�����������ˤϡ�\f2servertool ����Ѥ��ƥ����С���ư����ɬ�פ�����ޤ���\f2servertool �ϥ��ץꥱ�������ץ?��ޤ�����³�����С�����Ͽ����Ͽ���ư����ߤ�Ԥ�����Υ��ޥ�ɹԥ��󥿥ե������Ǥ���\f2�����С��ޥ͡������ξܺ٤ˤĤ��Ƥϡ����Υɥ�����ȤΡ֥����С��ޥ͡�����פ���򻲾Ȥ��Ƥ���������

\f2orbd �ε�ư���ˤϥ͡��ॵ���ӥ��ⵯư����ޤ����͡��ॵ���ӥ��ξܺ٤ˤĤ��Ƥϡ� ��\f2Naming Service��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html) �򻲾Ȥ��Ƥ���������

ɬ�ܥ��ץ����

3 -ORBInitialPort nameserverport �͡��ॵ���С���ư����ݡ��Ȥ���ꤷ�ޤ�����ư��� \f2orbd �Ϥ��Υݡ��Ȥ��忮�׵���Ե����ޤ���Solaris ���եȥ���������Ѥ�����ϡ������ѡ��桼�����ˤʤä� 1024 ̤���Υݡ��Ȥǥץ?���򳫻Ϥ���ɬ�פ�����ޤ������Τ��ᡢ1024 �ʾ�Υݡ����ֹ�λ��Ѥ�侩���ޤ��� (ɬ��)

����¾�Υ��ץ����

3 -port port ORBD �򳫻Ϥ��뵯ư�ݡ��Ȥ���ꤷ�ޤ���ORBD �Ϥ��Υݡ��Ȥǡ���³���֥������Ȥ��׵������դ��ޤ������Υݡ��ȤΥǥե�����ͤ� 1049 �Ǥ������Υݡ����ֹ�ϡ���³ Interoperable Object References (IOR) �Υݡ��ȥե�����ɤ��ɲä���ޤ���(��ά��ǽ)

3 -defaultdb directory ORBD ��³���ȥ졼���ǥ��쥯�ȥ�Ǥ��� \f2orb.db �����������١�������ꤷ�ޤ������Υ��ץ���󤬻��ꤵ��ʤ���硢�ǥե�����ͤ� "./orb.db" �Ǥ���(��ά��ǽ)

3 -serverPollingTime milliseconds \f2servertool ��ͳ����Ͽ���줿��³�����С��η������� ORBD �������������٤���ꤷ�ޤ����ǥե�����ͤ� 1,000 �ߥ��� (1 ��) �Ǥ���\f2milliseconds �˻��ꤵ����ͤϡ�ͭ������������Ǥʤ���Фʤ�ޤ��� (��ά��ǽ)��

3 -serverStartupDelay milliseconds \f2servertool ��ͳ����Ͽ���줿��³�����С����Ƶ�ư����Ƥ��� ORBD ���?�������ž���㳰����������ޤǤΡ�ORBD ���Ե����֤���ꤷ�ޤ����ǥե�����ͤ� 1,000 �ߥ��� (1 ��) �Ǥ���\f2milliseconds �˻��ꤵ����ͤϡ�ͭ������������Ǥʤ���Фʤ�ޤ��� (��ά��ǽ)��

3 -Joption \f2option �� Java ���ۥޥ�����Ϥ��ޤ��������ǡ�\f2option �ϡ���\f2Java ���ץꥱ�������ư�ץ?�����

(http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html) �Υ�ե���󥹥ڡ�������������Ƥ��륪�ץ����� 1 �ĤǤ������Ȥ��С�\f3-J-Xms48m �ϡ���ư���˻��Ѥ������� 48M �Х��Ȥ����ꤷ�ޤ���\f3-J �����ܤˤ��벾�ۥޥ���˥��ץ������Ϥ����Ȥϡ����̤ε���Ǥ���

�͡��ॵ���ӥ��ε�ư�����

�͡��ॵ���ӥ��ϡ�̾���򥪥֥������Ȼ��Ȥ˥Х���ɤ��뤳�Ȥˤ�äơ���\f2CORBA objects��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlGlossary.html#CORBA%20object) �����Ǥ���褦�ˤ��� CORBA �����ӥ��Ǥ�����\f2name binding�� (http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlGlossary.html#name%20binding) �ϡ��͡��ߥ󥰥����ӥ�����¸�Ǥ��ޤ������饤����Ȥ�̾������ꤷ�ơ���Ū�Υ��֥������Ȼ��Ȥ�����Ǥ��ޤ���

���饤����Ȥޤ��ϥ����С���¹Ԥ������ˡ�ORBD �򳫻Ϥ��ޤ���ORBD �ˤϡ���³�͡��ߥ󥰥����ӥ��Ȱ���͡��ߥ󥰥����ӥ����ޤޤ�Ƥ��ޤ���������ξ��Ȥ� COS �͡��ߥ󥰥����ӥ��μ����Ǥ���

2 * \f4��³\f3�͡��ߥ󥰥����ӥ��ϡ��͡��ߥ󥰥���ƥ����Ȥ˻�³�����󶡤��ޤ����Ĥޤꡢ���ξ���ϥ����ӥ�����ߤȵ�ư�δ֤ǻ�³���������ӥ��˾㳲��ȯ���������˲����ǽ�Ǥ���ORBD ���Ƶ�ư�����ȡ���³�͡��ߥ󥰥����ӥ��ϥ͡��ߥ󥰥���ƥ����ȥ���դ���뤿�ᡢ���٤ƤΥ��饤����Ȥȥ����С���̾���ΥХ���ǥ��󥰤�»�������ޤ��� (��³����)��

2 * �����ΥС������Ȥθߴ����Τ��ᡢ\f2tnameserv (�����ΥС������� JDK �Ȱ��˽в٤��줿\f4���\f3�͡��ߥ󥰥����ӥ�) �⤳�Υ�꡼���� J2SE �˴ޤޤ�Ƥ��ޤ�������͡��ߥ󥰥����ӥ����¹Ԥ���Ƥ���¤ꡢ�͡��ߥ󥰥���ƥ����Ȥ��ݻ��ޤ��������ӥ������Ǥ��줿��硢�͡��ߥ󥰥���ƥ����ȥ���դϼ����ޤ���

\f2-ORBInitialPort ����ϡ�\f2orbd ��ɬ�ܤΥ��ޥ�ɹ԰���ǡ��͡��ߥ󥰥����ӥ����¹Ԥ����ݡ����ֹ������˻��Ѥ���ޤ����ʲ��������ϡ�Java IDL Object Request Broker Daemon �˥ݡ��� 1050 ����ѤǤ���Ȳ��ꤷ�Ƥ��ޤ���Solaris ���եȥ���������Ѥ�����ϡ������ѡ��桼�����ˤʤä� 1024 ̤���Υݡ��Ȥǥץ?���򳫻Ϥ���ɬ�פ�����ޤ������Τ��ᡢ1024 �ʾ�Υݡ����ֹ�λ��Ѥ�侩���ޤ���ɬ�פʾ��ϡ��̤Υݡ��Ȥ���Ѥ��뤳�Ȥ�Ǥ��ޤ���

UNIX ���ޥ�ɥ����뤫�� \f2orbd ��ư����ˤϡ����Τ褦�����Ϥ��ޤ���

\f3
.fl
 orbd -ORBInitialPort 1050&
.fl

MS-DOS �����ƥ�ץ��ץ� (Windows) ���鵯ư����ˤϡ����Τ褦�����Ϥ��ޤ���

\f3
.fl
 start orbd -ORBInitialPort 1050
.fl

ORBD �μ¹Ը�ˡ������С�����ӥ��饤����ȥ��ץꥱ��������¹ԤǤ��ޤ������饤����Ȥ���ӥ����С����ץꥱ��������¹Ԥ�����ϡ��͡��ߥ󥰥����ӥ����¹Ԥ���Ƥ���ݡ����ֹ� (����ӳ���������ϡ��ޥ���̾) �򥢥ץꥱ��������ǧ��������ɬ�פ�����ޤ��������¹Ԥ�����ˡ�� 1 �ĤȤ��ơ����Υ����ɤ򥢥ץꥱ���������ɲä��뤳�Ȥ��Ǥ��ޤ���

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

������Ǥϡ��͡��ߥ󥰥����ӥ��ϥۥ��ȡ�MyHost�פΥݡ��� 1050 �Ǽ¹Ԥ���Ƥ��ޤ����ޤ��������С��ޤ��ϥ��饤����ȥ��ץꥱ�������μ¹Ի��˥��ޥ�ɹԤ���ݡ����ֹ�ޤ��ϥޥ���̾����ꤹ�뤳�Ȥ�Ǥ��ޤ������Ȥ��С���HelloApplication�פ򼡤Υ��ޥ�ɹԤǵ�ư���ޤ���

\f3
.fl
 java HelloApplication -ORBInitialPort 1050 -ORBInitialHost MyHost
.fl

�͡��ߥ󥰥����ӥ�����ߤ���ˤϡ��������륪�ڥ졼�ƥ��󥰥����ƥॳ�ޥ�ɤ���Ѥ��ޤ� (Solaris �Ǥ� \f2pkill orbd���ޤ��� \f2orbd ���¹Ԥ���Ƥ��� DOS ������ɥ��Ǥ� \f2Ctrl+C �ʤ�)������͡��ॵ���ӥ��ξ�硢�����ӥ�����λ����ȡ��͡��ߥ󥰥����ӥ�����Ͽ����Ƥ���̾�����ü������ǽ��������ޤ���Java IDL �͡��ߥ󥰥����ӥ�������Ū����ߤ����ޤǼ¹Ԥ��ޤ���

ORBD �˴ޤޤ�Ƥ���͡��ߥ󥰥����ӥ��ξܺ٤ˤĤ��Ƥϡ���\f2Naming Service��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html) �򻲾Ȥ��Ƥ���������

�����С��ޥ͡�����

ORBD �Υ����С��ޥ͡�����˥����������ƻ�³�����С���¹Ԥ���ˤϡ�\f2servertool ����Ѥ��ƥ����С���ư����ɬ�פ�����ޤ���\f2servertool �ϥ��ץꥱ�������ץ?��ޤ�����³�����С�����Ͽ����Ͽ���ư����ߤ�Ԥ�����Υ��ޥ�ɹԥ��󥿥ե������Ǥ���\f2servertool ����Ѥ��ƥ����С���ư�����硢\f2orbd ��Ʊ���ۥ��Ȥ���ӥݡ��Ȥǵ�ư����ɬ�פ�����ޤ����ۤʤ�ݡ��Ȥǥ����С�����ư���줿��硢�?���륳��ƥ����ȤΥǡ����١����˳�Ǽ����Ƥ�������̵��ˤʤꡢ�����ӥ�������˵�ǽ���ʤ��ʤ�ޤ���

�����С��ޥ͡�����: ��

�ǥ��ѤΥ���ץ���塼�ȥꥢ��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlExample.html) ��Ȥäơ�\f2idlj ����ѥ���� \f2javac ����ѥ������塼�ȥꥢ��Ǽ�����Ƥ���褦�˼¹Ԥ��ޤ��������С��ޥ͡������¹Ԥ���ˤϡ��ʲ��μ��˽��äƥ��ץꥱ��������¹Ԥ��ޤ���

3 1. orbd ��ư���ޤ���

\f2orbd �� UNIX ���ޥ�ɥ����뤫�鵯ư����ˤϡ����Τ褦�����Ϥ��ޤ���

\f3
.fl
 orbd -ORBInitialPort 1050 
.fl

MS-DOS �����ƥ�ץ��ץ� (Windows) ���鵯ư����ˤϡ����Τ褦�����Ϥ��ޤ���

\f3
.fl
 start orbd -ORBInitialPort 1050
.fl

\f21050 �ϡ��͡��ॵ���С���¹Ԥ���ݡ��ȤǤ���\f2-ORBInitialPort ��ɬ�ܤΥ��ޥ�ɹ԰���Ǥ���Solaris ���եȥ���������Ѥ�����ϡ��롼�Ȥ��� 1024 ̤���Υݡ��Ȥǥץ?���򳫻Ϥ���ɬ�פ�����ޤ������Τ��ᡢ1024 �ʾ�Υݡ����ֹ�λ��Ѥ�侩���ޤ���

3 2. \f2servertool ��ư���ޤ���

Hello �����С���ư����ˤϡ����Τ褦�����Ϥ��ޤ���

\f3
.fl
 servertool -ORBInitialPort 1050
.fl

�͡��ॵ���С� (\f2orbd) �Υݡ��Ȥ����μ��ǻ��Ѥ����ݡ��� (���Ȥ��С�\f2-ORBInitialPort 1050) ��Ʊ���Ǥ��뤳�Ȥ��ǧ���Ƥ���������\f2servertool �ϡ��͡��ॵ���С���Ʊ���ݡ��Ȥǵ�ư����ɬ�פ�����ޤ���

\f2servertool ���ޥ�ɹԥ��󥿥ե�������ɽ������ޤ���

3 3. Hello �����С��� \f2servertool �ץ��ץȤ��鵯ư���ޤ���

\f3
.fl
 servertool > register -server HelloServer -classpath . 
 -applicationName HelloServerApName
.fl

\f2servertool �ϡ����Υ����С�����Ͽ��������ˡ�HelloServerApName�פȤ���̾���������ơ����Υ����С� ID ����Ͽ����Ƥ��뤹�٤ƤΥ����С��ΰ�����ɽ�����ޤ���

3 4. ���饤����ȥ��ץꥱ���������̤Υ����ߥʥ륦����ɥ��ޤ��ϥץ��ץȤ���¹Ԥ��ޤ���

\f3
.fl
 java HelloClient -ORBInitialPort 1050 -ORBInitialHost localhost
.fl

������ξ�硢�͡��ॵ���С��� Hello ���饤����Ȥ�Ʊ���ۥ��ȤǼ¹Ԥ���Ƥ���Τǡ�\f2-ORBInitialHost localhost ��ʤ����Ȥ��Ǥ��ޤ����͡��ॵ���С����̤Υۥ��ȤǼ¹Ԥ���Ƥ�����ϡ�\f2-ORBInitialHost \f2nameserverhost ����Ѥ��� IDL �͡��ॵ���С����¹Ԥ���Ƥ���ۥ��Ȥ���ꤷ�ޤ���

���μ���Ʊ�ͤˡ��͡��ॵ���С� (\f2orbd) �Υݡ��� (���Ȥ��С�\f2-ORBInitialPort 1050) ����ꤷ�ޤ���

3 5. �����С��ޥ͡�����μ¸�����λ�����顢�͡��ॵ���С� (\f2orbd) �� \f2servertool ��ɬ����� (��λ) ���Ƥ���������

\f2orbd �� DOS �ץ��ץȤ�����ߤ���ˤϡ������С����¹Ԥ���Ƥ��륦����ɥ������򤷡�\f2Ctrl+C �򲡤�����ߤ��ޤ���\f2orbd �� UNIX �����뤫����ߤ���ˤϡ��ץ?���򸡺����ƽ�λ���ޤ��������С��ϡ�����Ū����ߤ����ޤǵ�ư���³���Ե����ޤ���

\f2servertool ����ߤ���ˤϡ�\f2quit �����Ϥ��������ܡ��ɤ� \f2Enter �����򲡤��ޤ���

��Ϣ����

2 * ��\f2Naming Service��

(http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html)

2 * servertool