tnameserv.1 revision 5176
2362N/A." or visit www.oracle.com if you need additional information or have any
4033N/A���Υɥ�����ȤǤϡ�Java IDL����͡��ࡦ�����ӥ�\f2tnameserv\fP�λ�����ˡ�ˤĤ����������ޤ���Java IDL�ˤϡ�Object Request Broker Daemon(ORBD)��ޤޤ�Ƥ��ޤ���ORBD�ϡ��֡��ȥ��ȥ�åס������ӥ�������͡��ࡦ�����ӥ���\f3��³\fP�͡��ࡦ�����ӥ�����ӥ����С����ޥ͡������ޤ�ǡ���ץ?���Ǥ���Java IDL�Τ��٤ƤΥ��塼�ȥꥢ��Ǥ�ORBD����Ѥ��Ƥ��ޤ���������͡��ࡦ�����ӥ�����Ѥ�����Ǥϡ�\f2orbd\fP�Τ�����\f2tnameserv\fP����ѤǤ��ޤ���\f2orbd\fP�ġ���ξܺ٤ϡ�orbd��orbd(1)�ޤ���
1178N/Ahttp://docs.oracle.com/javase/7/docs/technotes/guides/idl/jidlNaming.html�˴ؤ���ȥԥå��Ȥ��Ƥ���������
4033N/ACORBA��COS(Common Object Services)�͡��ࡦ�����ӥ��ϡ��ե����롦�����ƥब�ե�������Ф��ƥǥ��쥯�ȥ깽¤�����Ƥ���Τ�Ʊ���褦�ˡ����֥������Ȼ��Ȥ��Ф��ƥĥ��¤�Υǥ��쥯�ȥ�����ޤ���Java IDL�ΰ���͡��ࡦ�����ӥ��Ǥ���\f2tnameserv\fP�ϡ�COS�͡��ࡦ�����ӥ��λ��ͤ�ñ��ʷ��Ǽ���������ΤǤ���
1178N/A���֥������Ȼ��Ȥ�̾�����֤�̾���dz�Ǽ���졢���֥������Ȼ��Ȥ�̾���Υڥ��ϡ����줾��͡��ࡦ\f2�Х���ǥ���\fP�ȸƤФ�ޤ����͡��ࡦ�Х���ǥ���\f2�͡��ߥ�����ƥ�����\fP���Ȥ߹��ळ�Ȥ��Ǥ��ޤ����͡��ߥ�����ƥ����ȤϤ��켫�Τ��͡��ࡦ�Х���ǥ��Ǥ��ꡢ�ե����롦�����ƥ�Υ��֥ǥ��쥯�ȥ��Ʊ��������ǽ�����ޤ������٤ƤΥХ���ǥ���\f2���͡��ߥ�����ƥ�����\fP�˳�Ǽ����ޤ���̾�����֤ˤ����ơ����͡��ߥ�����ƥ����Ȥ�ͣ��α�³Ū�Х���ǥ��Ǥ�������ʳ��Υ͡��ߥ�����ƥ����Ȥϡ�Java IDL�Υ͡��ߥ������ӥ����ץ?������ߤ����Ƶ�ư�����ȼ����ޤ���
1178N/A���ץ�åȤޤ��ϥ��ץꥱ�������COS�͡��ࡦ�����ӥ�����Ѥ��뤿��ˤϡ�����ORB���͡��ࡦ�����ӥ���ư��Ƥ���ۥ��ȤΥݡ��Ȥ��ΤäƤ��뤫�����Υ͡��ࡦ�����ӥ���ʸ�����줿���͡��ߥ�����ƥ����Ȥ˥��������Ǥ���ɬ�פ�����ޤ����͡��ࡦ�����ӥ��ϡ�Java IDL�Υ͡��ࡦ�����ӥ��Ǥ⤽��¾��COS���Υ͡��ࡦ�����ӥ��Ǥ⤫�ޤ��ޤ���
4033N/AJava IDL�͡��ࡦ�����ӥ��ϡ��͡��ࡦ�����ӥ�����Ѥ��륢�ץꥱ�������ޤ��ϥ��ץ�åȤ�����˵�ư���Ƥ���ɬ�פ�����ޤ���Java\ IDL���ʤȡ��뤹��ȡ�Java\ IDL�͡��ࡦ�����ӥ���ư���륹����ץ�(Solaris: \f2tnameserv\fP)�ޤ��ϼ¹Բ�ǽ�ե�����(Windows NT: \f2tnameserv.exe\fP)����������ޤ����Хå����饦��ɤ�ư���褦�ˡ��͡��ࡦ�����ӥ���ư���Ƥ���������
1178N/A�ä˻��ꤷ�ʤ���硢Java IDL�͡��ࡦ�����ӥ��ϡ�ORB��\f2resolve_initial_references()\fP��åɤ�\f2list_initial_references()\fP��åɤμ����˻��Ѥ���֡��ȥ��ȥ�åס��ץ�ȥ�����Ф��ƥݡ���900���Ե����ޤ���
0N/A�͡��ࡦ�����С����ݡ��Ȥ���ꤷ�ʤ���硢�ǥե���Ȥǥݡ���900�����Ѥ���ޤ���Solaris���եȥ������μ¹Ի��ϡ�1024��꾮�����ݡ��Ȥǥץ?���Ϥ����硢root�桼�����ˤʤ�ɬ�פ�����ޤ������Τ��ᡢ1024�ʾ�Υݡ����ֹ����Ѥ��뤳�Ȥ����ᤷ�ޤ���1050�Τ褦���̤Υݡ��Ȥ���ꤷ���͡��ࡦ�����ӥ���Хå����饦��ɤǼ¹Ԥ���ˤϡ�UNIX���ޥ�ɡ�������Ǽ��Τ褦�����Ϥ��ޤ���
�͡��ࡦ�����С��Υ��饤����Ȥˤϡ��������ݡ����ֹ���Τ餻��ɬ�פ�����ޤ��������Ԥ��ˤϡ�ORB���֥������Ȥκ�������\f2org.omg.CORBA.ORBInitialPort\fP�ץ�ѥƥ��˿������ݡ����ֹ�����ꤷ�ޤ���
Java IDL��RMI\-IIOP�ΤۤȤ�ɤΥ��塼�ȥꥢ��Ǥϡ��͡��ࡦ�����ӥ��������С�����ӥ��饤����ȤϤ��٤Ƴ�ȯ�ѤΥޥ����Ǽ¹Ԥ���ޤ����ºݤ˥ǥץ?���Ȥ�����ˤϡ����饤����Ȥȥ����С��͡��ࡦ�����ӥ��Ȥϰۤʤ�ۥ��Ⱦ�Ǽ¹Ԥ��뤳�Ȥ�¿���ʤ�ޤ���
���饤����Ȥȥ����С����͡��ࡦ�����ӥ��Ĥ���ˤϡ����饤����Ȥȥ����С������͡��ࡦ�����ӥ����¹Ԥ���Ƥ���ݡ��Ȥ��ֹ�ȥۥ��Ȥ�ǧ�����Ƥ���ɬ�פ�����ޤ������Τ���ˤϡ����饤����Ȥȥ����С��Υե��������\f2org.omg.CORBA.ORBInitialPort\fP�ץ�ѥƥ���\f2org.omg.CORBA.ORBInitialHost\fP�ץ�ѥƥ���͡��ࡦ�����ӥ����¹Ԥ���Ƥ���ݡ��Ȥ��ֹ�ȥޥ����̾�������ꤷ�ޤ���������ϡ�
http://docs.oracle.com/javase/7/docs/technotes/guides/rmi\-iiop/rmiiiopexample.html�˼�����Ƥ��ޤ������ޥ�ɥ饤���ץ����\f2\-ORBInitialPort\fP \f2nameserverport#\fP��\f2\-ORBInitialHost\fP \f2nameserverhostname\fP����Ѥ��ơ����饤����Ȥȥ����С����Ф��ƥ͡��ࡦ�����ӥ���õ��������ꤹ�뤳�Ȥ�Ǥ��ޤ���
http://docs.oracle.com/javase/7/docs/technotes/guides/idl/tutorial/jidl2machines.html�ˤϡ����ޥ�ɥ饤���ץ�������Ѥ��ƻ��ꤹ����ˡ��������Ƥ��ޤ���
���Ȥ��С�����͡��ࡦ�����ӥ�\f2tnameserv\fP�����ۥ���\f2nameserverhost\fP�Υݡ���1050��Ǽ¹Ԥ���Ƥ���Ȥ��ޤ�������ˡ����饤����Ȥ��ۥ���\f2clienthost\fP��Ǽ¹Ԥ��졢�����С��ϥۥ���\f2serverhost\fP��Ǽ¹Ԥ���Ƥ���Ȥ��ޤ���
Java���ۥޥ����\f2option\fP���Ϥ��ޤ���\f2option\fP�ˤϡ�java(1)�Υ�ե�����ڡ����˵��ܤ���Ƥ��륪�ץ�����1�Ļ��ꤷ�ޤ������Ȥ��С�\f3\-J\-Xms48m\fP�Ȼ��ꤹ��ȡ��������ȥ��åס������48M�Х��Ȥ����ꤵ��ޤ���\f3\-J\fP����Ѥ����ظ�β��ۥޥ���˥��ץ������Ϥ����ȤϤ褯�Ԥ��Ƥ��ޤ���
Java IDL�͡��ࡦ�����ӥ�����ߤ���ˤϡ�Unix�ξ��ϡ�\f2kill\fP�ʤɤΥ��ڥ졼�ƥ��������ƥ�Υ��ޥ�ɤ���Ѥ���Windows�ξ��ϡ�\f2[Ctrl]+[C]\fP��������Ѥ��ޤ����͡��ࡦ�����ӥ�������Ū����ߤ���ޤǤϡ��ƽФ��Ե����֤�³���ޤ��������ӥ���λ������ȡ�Java IDL�͡��ࡦ�����ӥ�����Ͽ����Ƥ���̾���ϼ����ޤ���
���˼�������ץ롦�ץ?���ϡ�̾����̾�����֤��ɲä�����ˡ����ΤǤ������Υ���ץ롦�ץ?���ϡ����Τޤޤξ��֤Ǵ�����ư������͡��ࡦ�����ӥ������饤����Ȥǡ����Τ褦��ñ��ʥĥ����������ΤǤ���
������ǡ�\f3plans\fP�ϥ��֥������Ȼ��ȡ�\f3Personal\fP��\f3calendar\fP��\f3schedule\fP��2�ĤΥ��֥������Ȼ��Ȥ�ޤ�͡��ߥ�����ƥ����ȤǤ���
import java.util.Properties;
import org.omg.CORBA.*;
import org.omg.CosNaming.*;
���Ҥ�Java IDL����͡��ࡦ�����ӥ��ε�ư�ǡ��͡��ࡦ�����С��ϥݡ���1050����Ѥ��Ƶ�ư���ޤ��������Υ����ɤǡ����Υݡ����ֹ�饤����ȡ������ƥ���Τ餻�ޤ���
ORB orb = ORB.init(args, props);
���Υ����ɤǤϡ����͡��ߥ�����ƥ����Ȥ�������������\f3ctx\fP���������ޤ���2���ܤǤϡ�\f3ctx\fP����ߡ��Υ��֥������Ȼ���\f3objref\fP�˥��ԡ����ޤ�������objref�ˤϡ����Ȥ��͡���̾���������Ƥ�̾�����֤��ɲä��ޤ���
���Υ����ɤǤϡ�text�����פ�̾��plans����������������ߡ��Υ��֥������Ȼ��Ȥ˥Х���ɤ��ޤ������θ塢\f2rebind\fP����Ѥ��ƽ��͡��ߥ�����ƥ����Ȥβ���plans���ɲä��Ƥ��ޤ���\f2rebind\fP��åɤ���Ѥ���С�\f2bind\fP����Ѥ�������ȯ�������㳰��ȯ���������ˡ����Υץ?�����٤ⷫ�֤��¹ԤǤ��ޤ���
ctx.rebind(name1, objref);
System.out.println("plans rebind successful!");
���Υ����ɤǤϡ�directory�����פ�Personal�Ȥ����͡��ߥ�����ƥ����Ȥ�������ޤ������η�������륪�֥������Ȼ���\f3ctx2\fP��̾���˥Х���ɤ������͡��ߥ�����ƥ����Ȥ��ɲä��ޤ���
NamingContext ctx2 = ctx.bind_new_context(name2);
System.out.println("new naming context added..");
�Ĥ�Υ����ɤǤϡ����ߡ��Υ��֥������Ȼ��Ȥ�schedule��calendar�Ȥ���̾���ǥ͡��ߥ�����ƥ����ȡ�Personal��(\f3ctx2\fP)�˥Х���ɤ��ޤ���
ctx2.rebind(name3, objref);
System.out.println("schedule rebind successful!");
ctx2.rebind(name4, objref);
System.out.println("calender rebind successful!");
import java.util.Properties;
import org.omg.CORBA.*;
import org.omg.CosNaming.*;
���Ҥ�Java IDL����͡��ࡦ�����ӥ��ε�ư�ǡ��͡��ࡦ�����С��ϥݡ���1050����Ѥ��Ƶ�ư���ޤ��������Υ����ɤǡ����Υݡ����ֹ�饤����ȡ������ƥ���Τ餻�ޤ���
ORB orb = ORB.init(args, props);
\f2list\fP��åɤϡ��͡��ߥ�����ƥ����ȤΥХ���ǥ���ꥹ�Ȥ��ޤ������ξ�硢����1000�ĤޤǤΥХ���ǥ������͡��ߥ�����ƥ����Ȥ���BindingListHolder���֤���ޤ����Ĥ�ΥХ���ǥ��ϡ�BindingIteratorHolder���֤���ޤ���
nc.list(1000, bl, blIt);
Binding bindings[] = bl.value;
if (bindings.length == 0) return;
for (int i=0; i < bindings.length; i++) {
String objStr = orb.object_to_string(obj);
int lastIx = bindings[i].binding_name.length\-1;
if (bindings[i].binding_type == BindingType.ncontext) {
System.out.println( "Context: " +
System.out.println("Object: " +