Sun Java logo     �W�@��      �ؿ�      �d�      �U�@��     

Sun logo
�A�Ω� UNIX �� Sun Java Enterprise System 5 �ɯū�n 

�� 12 ��
Service Registry

�����y�z�p��N Service Registry �ɯŨ� Java ES 5 (�o�檩�� 5)�GService Registry 3.1�C

����²�n���еo�檩�� 5 �Ҥ䴩�����P�ɯŸ�|���ɯŪ`�N�ƶ��A�[�\�b Solaris �M Linux �@�~�t�ΤW���ɯŧ@�~�G


Service Registry �ɯ�²��

���`�y�z�U�C�|�v�T Service Registry �ɯŦ� Java ES 5 (�o�檩�� 5) ���@��h���G

��� Java ES �o�檩�� 5

�۹��o�檩�� 4 Service Registry �Ө��AJava ES �o�檩�� 5 Service Registry �����n�o�檩���C���]�t�@�ǧ�i���\��B��s�������H�Ωҿ��~�ץ��{���C

Java ES �o�檩�� 5 �ɯŸ�T��n

�� 12-2 ��ܤ䴩�� Service Registry �� Java ES �o�檩�� 5 ���ɯŸ�|�C�Ӫ�A�Ω� Solaris �M Linux �@�~�t�ΡC

�� 12-2  �� Java ES 5 (�o�檩�� 5) ���ɯŸ�|�GService Registry 3.1 

Java ES �o�檩��

Service Registry ����

�@���k

�ݭn���s�t�m

�o�檩�� 4

Sun Java System Service Registry 3.0 2005Q4

�����ɯšG
�H�o�檩�� 5 �����s�w�˨�N�o�檩�� 4�A�ñN�n���ƶǿ�ܵo�檩�� 5�C

�L

Service Registry ���

�U����ܥi���ɯ� Service Registry �n��v�T����������C

�� 12-3  Service Registry ��ƥγ~

�������

��m

�γ~

�w�˰Ѽ�

ServiceRegistryR4-base/install/install.properties

Service Registry ���t�m

�i�H�����

ServiceRegistryR4-base/install/cacerts

Service Registry �H��B���ݩ� Application Server �w�ˤ@�������

�t�m���

RegistryDomainR4-base/domains/registry/applications/j2ee-modules/soar/WEB-INF/classes/*.properties

�t�m Service Registry ���

�n��/�x�s�w���

RegistryDomainR4-base/3.0/data

��Ʈw�M�ϥΪ̾���

Web �����t�m

RegistryDomainR4-base/3.0/jaxr-ebxml

Web �����t�m

Service Registry �ɯŵ���

Service Registry ���ɯŵ����@���M��b�� 1 ���u�ɯųW���v�����Ъ��\�h�Ҷq�]�!G�ɯŸ�|�BJava ES ���󤧶����̩ۨʡB��ܩʤɯŻP����ɯŤ��t���B�h����ҳ��p���C

���`�N�|���X�i��v�T Service Registry �ɯųW�������D�A�ǥH�� Service Registry �i��@��ʪ����СC

�ۮe�ʰ��D

�o�檩�� 5 Service Registry �V�U�ۮe�o�檩�� 4 Service Registry�C

�̩ۨ�

Service Registry ���L Java ES ���󪺬̩ۨʥi��|�v�T�ɯũM���s�t�m Service Registry �n�骺�{�ǡC�Ҧp�AService Registry �����Υ\��W���ܧ�i��ݭn Service Registry �̤ۨ����󪺤ɯŪ����C�ɯŦ������󪺻ݨD��M����骺�ɯŸ�|�C

Service Registry ��U�C Java ES ���󦳬̩ۨʡG

��ɯ�

�b��ɯŤ��AService Registry �P�@�~�t�Χ��|�i��ɯ� (�p��ɯšJ Java ES �P�@�~�t�γn�����ҭz)�A�o�ؤɯťi�ĥΤU�C��ؤ覡���@�Ӱ��G

���s�w�˧@�~�t��
  1. �ƥ�{���� Service Registry ��ơC
  2. �p�ݥ��n��ƪ���m�A�аѾ\ Service Registry ����C

  3. �w�˷s���@�~�t�ΡC
  4. �i�N�@�~�t�Φw�˦b�s�t�� (�� Solaris 10 �ϰ�) �W�A��i�����л\�{�����ɮרt�ΡC

  5. �_���B�J 1 ���ҳƥ� Service Registry ��ơC
  6. �w�˵o�檩�� 5 Service Registry�C
��a�ɯŧ@�~�t��
  1. �ƥ�{���� Service Registry ��ơC
  2. �p�ݥ��n��ƪ���m�A�аѾ\ Service Registry ����C

  3. �ɯŧ@�~�t�ΡC
  4. �ɯŮɷ|��˫O�d�{�����ɮרt�ΡC

  5. �ɯŨ�o�檩�� 5 Service Registry�C
  6. �аѾ\�q Java ES �o�檩�� 4 �ɯ� Service Registry�C


�q Java ES �o�檩�� 4 �ɯ� Service Registry

���`�]�A�N Service Registry �q Java ES 2005Q4 (�o�檩�� 4) �ɯŨ� Java ES 5 (�o�檩�� 5) �������T�C���`�[�\�H�U�D�D�G

²��

�N Java ES �o�檩�� 4 Service Registry �ɯŨ�o�檩�� 5 �ɡA�ЦҼ{�ɯŵ{�Ǫ��U�C�h���G

�ɯŵo�檩�� 4 Service Registry

���`�y�z�p��b Solaris �� Linux ���x�W�N Service Registry �q Java ES �o�檩�� 4 �ɯŨ� Java ES �o�檩�� 5�C��Y�ӥD�D�̿७�x�S�w���{�ǮɡA�ӥD�D�N��X��A�Ϊ��@�~�t�ΡC���`�[�\�H�U�D�D�G

�ɯūe�@�~

�ɯ� Service Registry ���e�A3�Ӱ��U�C�@�~�G

���ҥثe������T

�z�i�ǥѪ`�N Web Console �ϥΪ̤������S�ʨ����� Service Registry ���ثe�����G

http://localhost:6060/soar

�P�ɡA�z�٥i�ˬd Service Registry �M�˳n��W�١C�Ҧp�G

�b Solaris �W�G
pkginfo -l|grep srvc

�b Linux �W�G
rpm -qa|grep srvc

�U����ܤF���P���S�ʩM�M�˳n��W�١G

�� 12-4  Service Registry �������ҿ�X

Java ES �o�檩��

Service Registry �����s��

���P���S��

�o�檩�� 4

3.0

Web Console�G�����椤���u�㳡��

�M�˳n��W�٥]�t�r��Gsoar

�o�檩�� 5

3.1

Web Console�G�����椤���T�Ӽ���

�M�˳n��W�٥]�t�r��Gsrvc-registry

�ɯ� Service Registry �̤ۨ���

�@�몺��ij�O�N�q���t�� (�ιB�����) �����Ҧ� Java ES ���󳣤ɯŨ� Java ES �o�檩�� 5�CService Registry ��@�Ǧ@�Τ���BApplication Server �M Java DB ���w�ʤɯŬ̩ۨʡC

�ɯ� Service Registry �̤ۨ���ɡA�b�ɯ� Service Registry ���e�A3��ӤU�C���ǰ�� (���L�i��w�ɯŹL�����̤ۨ���)�C�@�Τ��󪺤ɯųq�`�i�� Java ES �w�˵{���۰ʧ����C

  1. �@�Τ���C  �b�ɯ� Java ES �@�Τ��������ѤF�N Java ES �@�Τ���P�o�檩�� 5 �P�B����ܡC��O�A��z�N Service Registry �ɯŨ�o�檩�� 5 �ɡAService Registry �һݭn���Ҧ��@�Τ���|�� Java ES �w�˵{���۰ʤɯšC
  2. Java DB�C  �b�� 8 ���uJava DB�v�����ѤF�N Java DB �ɯŨ�o�檩�� 5 ����ܡC
  3. Application Server�C  �b�� 11 ���uApplication Server�v�����ѤF�N Application Server �ɯŨ�o�檩�� 5 ����ܡC
�ק� HTTP �s����

�s���ɮ� ServiceRegistryR4-base/install/install.properties�A�N HTTP �s����q 6060 �ܧ� 6480 (6060 �O�O�d���s����)�C�p�ݦ���]�w���S�ʪ���T�A�аѾ\�uService Registry 3.1 �޲z��n�v(http://docs.sun.com/doc/820-0538)�C

�ƥ� Service Registry ���

�N Service Registry �q�o�檩�� 4 �ɯŨ�o�檩�� 5 ���|�ק�t�m��Ʃεn��/�x�s�w��Ʈw�C���ݭn�ƥ�ثe����ơC

��o���n���t�m��T�M�K�X

�z�ݭn���D�o�檩�� 4 Service Registry ���ϥΪ� ID�B�K�X�B���W�٩M�s���𸹡C

�ɯŵo�檩�� 4 Service Registry

���`�y�z Solaris �M Linux ���x�W���ɯŵ{�ǡC

�ɯŵ{�� (Solaris)

�U�z�{�ǾA�Ω�����ɯŪ��q������W�� Service Registry ��ҡC

  1. �ХH�W�ŨϥΪ̨���n�J�Φ����W�ŨϥΪ̡C
  2. su -

  3. �T�w Jakarta ANT Java/��� XML ���إߤu�� (ANT �@�Τ���) �ѷӤF���T������ J2SE�C
  4. (�b���᪺�B�J���ϥΤF ant ��O�C)

    PATH=/usr/jdk/entsys-j2se/bin:$PATH

    export PATH

  5. ����o�檩�� 4 Service Registry (Application Server) ���C
  6. cd ServiceRegistryR4-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.stop

    ���P Service Registry ��Ҭ����p�C

  7. ���o�檩�� 5 Service Registry �����s�w�ˡC
  8. ���U�C�B�J�G

    1. �b�N�޵o�檩�� 4 Service Registry ���q���W�Ұ� Java ES �w�˵{���C
    2. cd Java ES Release 5 distribution/os_arch
      ./installer

      �䤤 os_arch �P�z�Ҧb���x�۲šA�Ҧp Solaris_sparc�C(�w���O�椶���ϥ� installer -nodisplay �ﶵ�C)

      ��ܥX [�w��] �M [���v�X��] ��������A�z�N�|�ݨ줸�����C(�?���i�� Java ES �w�˵{�������ɯŪ��w�ˤ���ɡA���̪����A�|��ܬ� [�i�ɯ�]�C)

    3. �q����������� Service Registry�C
    4. ��w�P�o�檩�� 4 ���P���w�˥ؿ��|�C
    5. �̹w�]�A�o�檩�� 5 ���w�˸�| (ServiceRegistryR5-base) �P�o�檩�� 4 ���w�˸�| (ServiceRegistryR4-base) ���P�C

    6. ��� [�H��t�m] �ﶵ�C
    7. ���䴩 [�ߧY�t�m]�C

    8. �p�����n�A�п��w�˥��g�ƮM�˳n�骺�ﶵ�C
    9. �w�˧����ɵ��� Java ES �w�˵{���C
  9. �ɯũM�t�m�o�檩�� 5 Service Registry ��ҡC
  10. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml
        -Dinstall.properties=
    ServiceRegistryR4-base/install/install.properties
        upgrade

    ������V�o�檩�� 4 install.properties �ɮת��t�@�ؿ�ܤ�k�A�z�i�H�ק�w�]�o�檩�� 5 install.properties �ɮץH���{���o�檩�� 4 �S�ʭȡC�p�ݦ���]�w�o�ǯS�ʪ���T�A�аѾ\�uService Registry 3.1 �޲z��n�v(http://docs.sun.com/doc/820-0538)�C

    �p�G�z�n�ϥΦۭq�S�ʭȡA�Ӥ��O�N���̩�b install.properties ���A����A�z�ݭn�b Ant ��O��W��w�o�ǯS�ʭ� (�����b�@�椤)�A�p�U�ҥܡG

    /usr/sfw/bin/ant -f build-install.xml
        -Dregistry.install.RegistryServerKeystorePassword=
    passwd1
        -Dregistry.install.AdministratorPassword=passwd2
        -Dregistry.install.ApplicationServerKeystorePassword=passwd3
        upgrade

    ���L�A��ij�N�o�Ǧۭq�S�ʭȥ]�t�b install.properties �ɮפ��A�èϥΦ�����v���H�קK�ϥΥi�ѥ��g���v�H���˵��O��]�w�C�p�ݧ�h��T�A�аѾ\�uService Registry �޲z��n�v�C

    �ɯŤ��ε{���|�إ߷s Application Server ���B�Ұʺ��H�Φb��줤���p Service Registry ��ҡC�C�� Service Registry ��ҬһP��ۨ��� Application Server �������p�C

  11. �p�G�w�g�ק�F�o�檩�� 4 Service Registry ����A���S���ɮסA�h�z�i�H��H�U�覡��o�檩�� 5 Service Registry �t�m�i���3���ܧ�G
    1. ����o�檩�� 5 Service Registry (Application Server) ���C
    2. (�����B�J 5 ���� upgrade ��O�۰ʱҰʡC)

      cd ServiceRegistryR5-base/install
      /usr/sfw/bin/ant -f build-install.xml appserver.domain.stop

    3. �N�o�檩�� 4 Service Registry ��Ұt�m�ǿ��o�檩�� 5�C
    4. �N�Ұ������ק�W�[�ܵo�檩�� 4 Service Registry ��Ұt�m�G

      RegistryDomainR4-base/domains/registry/applications/j2ee-modules/
      soar/WEB-INF/classes/*.properties

      �N�Ұ������ק�W�[�ܹ�3���o�檩�� 5 �t�m�G

      RegistryDomainR5-base/domains/registry/applications/j2ee-modules/
      soar/WEB-INF/classes/*.properties

  12. �Ұʵo�檩�� 5 Service Registry (Application Server) ���C
  13. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.start

�ɯŵ{�� (Linux)

���F Linux ���x�W ant ��O����m (�b�ɯŵ{�Ǫ��U�ӨB�J���ϥ�) �P Solaris ���x�W����m���P�H�~�A�b Linux �W�P�b Solaris �W�ɯ� Service Registry �����ۦP (�аѾ\�ɯŵ{�� (Solaris))�G

���Ҥɯ�

�z�i�ǥѪ`�N Web Console �ϥΪ̤������S�ʨ����� Service Registry �O�_�w���\�ɯšG

http://localhost:6480/soar

�P�ɡA�z�٥i�ˬd Service Registry �M�˳n��W�١C�Ҧp�G

�b Solaris �W�G
pkginfo -l|grep soar

�b Linux �W�G
rpm -qa|grep soar

�� 12-4 ��ܤF���P���S�ʩM�M�˳n��W�١C

�ɯū�@�~

�u���z�T�w�z���Q�^�_�ܵo�檩�� 4 ���ɯŮɡA�~�i���H�U����p�󲾰��o�檩�� 4 Service Registry ���B�J�C

  1. �R���o�檩�� 4 Service Registry (Application Server) ���G
  2. cd ServiceRegistryR4-base/install

    �b Solaris �W�G
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.delete

    �b Linux �W�G
    /opt/sun/bin/ant -f build-install.xml appserver.domain.delete

  3. �R���]�t�o�檩�� 4 Service Registry ����ɮת��ؿ�C
  4. rm -rf RegistryDomainR4-base

  5. �R���]�t�o�檩�� 4 Service Registry �w���ɮת��ؿ�C
  6. rm -rf ServiceRegistryR4-base

�^�_�ɯ�

�o�檩�� 5 �ɯŪ��^�_�O�ǥѴ_�쬰��e�����ӹF�����A��e�����b�ɯŨ�o�檩�� 5 �ɫO���ܡC

  1. ����M�R���o�檩�� 5 Service Registry (Application Server) ���G
  2. cd ServiceRegistryR4-base/install

    �b Solaris �W�G
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.delete

    �b Linux �W�G
    /opt/sun/bin/ant -f build-install.xml appserver.domain.delete

  3. ��� Java ES �o�檩�� 5 �Ѱ��w�˵{���A�H�Ѱ��w�˵o�檩�� 5 Service Registry�C
  4. �Ұʵo�檩�� 4 Service Registry ���C
  5. cd ServiceRegistryR4-base/install

    �b Solaris �W�G
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.start

    �b Linux �W�G
    /opt/sun/bin/ant -f build-install.xml appserver.domain.start

  6. �s��o�檩�� 4 Service Registry Web Console�C
  7. http://localhost:6480/soar

  8. �T�{�D���x��ܤF Service Registry �������ҿ�X���Ҥ��Ъ��o�檩�� 4 �S�ʡC

�h����Ҥɯ�

�b�Y�dz��p�[�c���A�|�N Service Registry ���p�b�h�ӹq���t�ΤW�A�H���ѩ��i�ʨô����i�ΩʡC�Ҧp�A�i�H�� Service Registry ��Ҧb�h�x�q���W���A�óz�L�t��ž��Ӥ4��t��C

�b�o�Ǭ[�c���A�n��D�n�O��Ū���A�åi�ǥѦs��@���Ʈw�Ӧ^3�j�q���d�ߡC

�p�ɯŵo�檩�� 4 Service Registry ���ҭz�A�z�n�b�C�x�q���W��� Service Registry ���ɯšC



�W�@��      �ؿ�      �d�      �U�@��     


��󸹽X�G820-0891
2007 �~ 6 ��C  Copyright 2007 Sun Microsystems, Inc. ���v�Ҧ��C