Sun Java logo     ��һҳ      Ŀ¼      ����      ��һҳ     

Sun logo
������ UNIX �� Sun Java Enterprise System 5 ��ָ�� 

�� 12 ��
Service Registry

���½�����ν� Service Registry �� Java ES 5�����а汾 5����Service Registry 3.1��

���¸�Ҫ�������йط��а汾 5 ��֧�ֵIJ�ͬ��ʽ����ע����������ݺ������� Solaris �� Linux ����ϵͳ�ϵ���


Service Registry �����

���ڽ������·���� Service Registry ���н��ܣ���Щ�������� Java ES 5�����а汾 5������Ӱ�죺

���� Java ES ���а汾 5

����ڷ��а汾 4 Service Registry ���ԣ�Java ES ���а汾 5 Service Registry ֻ��һ���Ҫ���а汾����Ľ���һЩ���ܣ��Խӿڽ����˸��£����޸���ѡ���Ĵ���

Java ES ���а汾 5 ��ָ��˵��

�� 12-2 ��ʾ����֧�ֵġ��� Service Registry �� Java ES ���а汾 5 ����ʽ���˱�������� Solaris��Ҳ������ Linux ����ϵͳ��

�� 12-2  �� Java ES 5�����а汾 5����Service Registry 3.1 �ķ�ʽ 

Java ES ���а汾

Service Registry �汾

���淽��

�������������

���а汾 4

Sun Java System Service Registry 3.0 2005Q4

ֱ����
ͨ��ִ��ȫ�°�װ�Լ���ע�����ݴ��͵����а汾 5 4�滻���а汾 4��

��

Service Registry ���

�±���ʾ�˿����� Service Registry �����Ӱ���������͡�

�� 12-3  Service Registry �����;

�������

�

��;

��װ����

ServiceRegistryR4-base/install/install.properties

Service Registry ������

����֤��

ServiceRegistryR4-base/install/cacerts

�� Service Registry ���ε�֤�飬��֤�鲢���� Application Server ��װ��һ����

�������

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

Service Registry ʵ�������

ע���/ϵͳ��Ϣ�����

RegistryDomainR4-base/3.0/data

��ݿ���û�֤��

Web �ӿ�����

RegistryDomainR4-base/3.0/jaxr-ebxml

Web �ӿڵ�����

Service Registry �����

Service Registry �������ͨ��ȡ�������� 1 �¡���滮�������۵����ע�������ʽ��Java ES ���֮�����5�ԡ�ѡ��������ȫ�����ʵ���𣬵ȵȡ�

����ͨ��������Ӱ�� Service Registry ��ƻ������⣬�� Service Registry ��һ��ע�����������һ���ܡ�

����������

���а汾 5 Service Registry �뷢�а汾 4 Service Registry �����ݡ�

�����5��

Service Registry ������ Java ES �������5�Ի�Ӱ������������� Service Registry ����Ĺ�̡����磬Service Registry �ӿڻ����ϵı仯����Ҫ�� Service Registry ����5�������汾���Ƿ���Ҫ��������ȡ���ھ������ʽ��

Service Registry ������ Java ES ���������5�ԣ�

˫����

��˫�����У�Service Registry �Ͳ���ϵͳ��Ҫ��������˫����Java ES �Ͳ���ϵͳ������������ʹ������}�ַ�ʽ֮һִ��˫����

����ϵͳȫ�°�װ
  1. �������� Service Registry ��ݡ�
  2. �йػ���ݵ�λ�ã��μ� Service Registry �����

  3. ��װ�µIJ���ϵͳ��
  4. �ɽ�����ϵͳ��װ����ϵͳ�ϣ��� Solaris 10 �����У��������s������ļ�ϵͳ��

  5. �ָ������� 1 �б��ݵ� Service Registry ��ݡ�
  6. ��װ���а汾 5 Service Registry��
����ϵͳ�͵���
  1. �������� Service Registry ��ݡ�
  2. �йػ���ݵ�λ�ã��μ� Service Registry �����

  3. �����ϵͳ��
  4. ��Ὣ�����ļ�ϵͳ����ԭ4��λ�á�

  5. �� Service Registry ����а汾 5��
  6. �μ��� Java ES ���а汾 4 �� Service Registry��


�� Java ES ���а汾 4 �� Service Registry

���ڰ���ڽ� Service Registry �� Java ES 2005Q4�����а汾 4���� Java ES 5�����а汾 5������Ϣ�����к����������⣺

���

�� Java ES ���а汾 4 Service Registry ����а汾 5 ʱ���뿼�������е����·��棺

���а汾 4 Service Registry ����

���ڽ�������� Solaris �� Linux ƽ̨�Ͻ� Service Registry �� Java ES ���а汾 4 �� Java ES ���а汾 5���������ij������ȡ���ھ���ƽ̨�Ĺ�̣�������⽫ָ�������õIJ���ϵͳ�����ڰ�(�������⣺

��ǰ������

�� Service Registry ֮ǰ��Ӧִ����������

���鵱ǰ�汾��Ϣ

��ͨ��۲� Web Console �û����������4���� Service Registry �ĵ�ǰ�汾��

http://localhost:6060/soar

���⣬Ҳ�ɼ�� Service Registry �������ơ����磺

�� Solaris �ϣ�
pkginfo -l|grep srvc

�� Linux �ϣ�
rpm -qa|grep srvc

�±���ʾ�����������������ƣ�

�� 12-4  Service Registry �汾�������

Java ES ���а汾

Service Registry �汾��

�������

���а汾 4

3.0

Web Console�����߲������������

�������ư�(�ַ�soar

���а汾 5

3.1

Web Console��������������ѡ�

�������ư�(�ַ�srvc-registry

�� Service Registry ��5��

ͨ�����齫�����ϵͳ���Լ����㻷�����е����� Java ES ������� Java ES ���а汾 5��Service Registry ����๲�������Application Server �Լ� Java DB ����Ӳ������5�ԡ�

�� Service Registry ����5��ʱ��Ӧ���� Service Registry ֮ǰ������˳��ִ�У�����κο����������5��������������ͨ������ Java ES ��װ�����Զ�ʵ�ֵġ�

  1. ���������  �� Java ES ����������ṩ�˽� Java ES �������ͬ�������а汾 5 ��˵������ڽ� Service Registry ����а汾 5 ʱ��Java ES ��װ������Զ��� Service Registry ��������й��������
  2. Java DB��  �� 8 �¡�Java DB�����ṩ�˽� Java DB ���w��а汾 5 ��˵��
  3. Application Server��  �� 11 �¡�Application Server�����ṩ�˽� Application Server ���w��а汾 5 ��˵��
�޸� HTTP �˿ں�

�༭ ServiceRegistryR4-base/install/install.properties �ļ����� HTTP �˿ڴ� 6060 ���Ϊ 6480��6060 �DZ���˿ڣ����й����ô����Ե���Ϣ���μ�Service Registry 3.1 ����ָ�ϡ�(http://docs.sun.com/doc/820-0537)��

���� Service Registry ���

�� Service Registry �ӷ��а汾 4 ����а汾 5 �����޸�������ݣ�Ҳ�����޸�ע���/ϵͳ��Ϣ����ݿ⡣û�б�Ҫ���ݵ�ǰ��ݡ�

��ȡ�����������Ϣ������

��Ҫ֪�7��а汾 4 Service Registry ���û� ID�����롢����Ͷ˿ںš�

���а汾 4 Service Registry

���ڽ��� Solaris �� Linux ƽ̨�ϵ����̡�

���� (Solaris)

�����������ڱ���פ���ڼ���������ļ�����ϵ� Service Registry ʵ��

  1. �� root ��ݵ�¼�����Ϊ�����û���
  2. su -

  3. ȷ�� Jakarta ANT Java/XML-based build tool��ANT ������������õ�����ȷ�汾�� J2SE��
  4. ���ڽ���4�IJ����н�ʹ�� ant �����

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

    export PATH

  5. ֹͣ���а汾 4 Service Registry (Application Server) ��
  6. cd ServiceRegistryR4-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.stop

    ������һ�� Service Registry ʵ�����j��

  7. ִ�з��а汾 5 Service Registry ��ȫ�°�װ��
  8. ִ�����²��裺

    1. ���йܷ��а汾 4 Service Registry �ļ�������� Java ES ��װ����
    2. cd Java ES Release 5 distribution/os_arch
      ./installer

      ���У�os_arch �����ƽ̨ƥ�䣬�� Solaris_sparc�������������н��棬ʹ�� installer -nodisplay ѡ���

      ��ʾ“��ӭ”��“���Э��”ҳ��֮�󣬽�������ʾһ�����ѡ��ҳ�档������⵽���� Java ES ��װ����ֱ������Ѱ�װ��������ǵ�״̬����ʾΪ“����”����

    3. �����ѡ��ҳ����ѡ�� Service Registry��
    4. ָ��һ��ͬ�ڷ��а汾 4 �İ�װĿ¼·����
    5. Ĭ������£����а汾 5 ��װ·�� (ServiceRegistryR5-base) ��ͬ�ڷ��а汾 4 ��װ·�� (ServiceRegistryR4-base)��

    6. ѡ��“�Ժ�������”ѡ�
    7. ��֧��“��������”ѡ�

    8. �����Ҫ��ѡ��װ���ػ�������ѡ�
    9. ��װ��ɺ��˳� Java ES ��װ����
  9. ������÷��а汾 5 Service Registry ʵ��
  10. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml
        -Dinstall.properties=
    ServiceRegistryR4-base/install/install.properties
        upgrade

    ����ָ���а汾 4 install.properties �ļ��⣬����ͨ���޸�Ĭ�Ϸ��а汾 5 install.properties �ļ�4�����κη��а汾 4 ����ֵ���й�������Щ���Ե���Ϣ���μ�Service Registry 3.1 ����ָ����(http://docs.sun.com/doc/820-0537)��

    ���Ҫʹ���Զ�������ֵ����δ�����Ƿ��� install.properties �У�����Ҫ�� Ant ��������ָ����������ֵ������ֵ��λ��һ�У���������ʾ��

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

    ���ǣ�����������Զ�������ֵ��(����������Ȩ�޵� install.properties �ļ��У���Ϊ��ʹ������������ʱ���ܻᱻδ����Ȩ��Ա�������йظ����Ϣ���μ� Service Registry ����ָ����

    ��ʵ�ó���ᴴ��һ���� Application Server ������򣬲��ڸ����в��� Service Registry ʵ��ÿ�� Service Registry ʵ������������ Application Server �����j��

  11. ����а汾 4 Service Registry �ķ����������ļ��Ѿ��޸ģ���ɶԷ��а汾 5 Service Registry ���ý�����Ӧ�ĸ�ģ�������ʾ��
    1. ֹͣ���а汾 5 Service Registry (Application Server) ��
    2. �������������� 5 �е� upgrade �����Զ������

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

    3. �����а汾 4 Service Registry ʵ�����ô��͵����а汾 5��
    4. ���Է��а汾 4 Service Registry ʵ������������κ��޸ģ�

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

      ��ӵ���Ӧ�ķ��а汾 5 �����У�

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

  12. ����а汾 5 Service Registry (Application Server) ��
  13. cd ServiceRegistryR5-base/install
    /usr/sfw/bin/ant -f build-install.xml appserver.domain.start

���� (Linux)

�� Linux ���� Service Registry ���� Solaris ����ȫ��ͬ���μ����� (Solaris)���������������̵ĸ��������ʹ�õ� ant ������� Linux ƽ̨�ϵ�λ������ Solaris ƽ̨�ϵ�λ�ò�ͬ��

������

��ͨ��۲� Web Console �û����������4���� Service Registry ���Ƿ�ɹ���

http://localhost:6480/soar

���⣬Ҳ�ɼ�� Service Registry �������ơ����磺

�� Solaris �ϣ�
pkginfo -l|grep soar

�� Linux �ϣ�
rpm -qa|grep soar

������������������ʾ���� 12-4 �С�

��������

���²���������ɾ���а汾 4 Service Registry��ֻ����ȷ������Է��а汾 4 ����ִ�лع�������ִ����Щ���衣

  1. ɾ���а汾 4 Service Registry (Application Server) ��
  2. cd ServiceRegistryR4-base/install

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

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

  3. ɾ����а汾 4 Service Registry ���ļ���Ŀ¼��
  4. rm -rf RegistryDomainR4-base

  5. ɾ����а汾 4 Service Registry ��װ�ļ���Ŀ¼��
  6. rm -rf ServiceRegistryR4-base

��ع�

���а汾 5 ����ع���ͨ��ԭ����ǰ�汾4ʵ�ֵģ��ð汾������а汾 5 ���Ա���ԭ��

  1. ֹͣ��ɾ���а汾 5 Service Registry (Application Server) ��
  2. cd ServiceRegistryR4-base/install

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

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

  3. ���� Java ES ���а汾 5 ж�س�����ж�ط��а汾 5 Service Registry��
  4. ����а汾 4 Service Registry ��
  5. cd ServiceRegistryR4-base/install

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

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

  6. ���ʷ��а汾 4 Service Registry Web Console��
  7. http://localhost:6480/soar

  8. ȷ�ϸÿ���̨��ʾ���Ƿ��а汾 4 ������ Service Registry �汾�����������ʾ��

��ʵ����

��һЩ������ϵ�ṹ�У�Service Registry �������ڶ������ϵͳ�ϣ����ṩ�������Ժ���߿����ԡ����磬������ڶ�̨����������� Service Registry ʵ��ʹ��һ����ƽ����4���为�ء�

����Щ��ϵ�ṹ�У�ע�������ֻ�uģ���ͨ����ʹ�����ݿ���Ӧ����ѯ���ء�

�����а汾 4 Service Registry ������������ÿ̨��������� Service Registry��



��һҳ      Ŀ¼      ����      ��һҳ     


����� 820-0890
2007 �� 6 �¡�  ��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ��