Setting up a default UDDI node with a default data source

You can create a UDDI node with predetermined property values and an embedded Apache Derby database. You can do this to set up a UDDI registry quickly for test or development purposes.

About this task

When you set up a default UDDI node with a default data source, the mandatory node properties, such as node ID, are set automatically and you cannot change them. You run a single script to create the UDDI database and data source, and to deploy the UDDI registry application. This type of node is suitable for initial evaluation of the UDDI registry and for development and test purposes.

If you want to create a default UDDI node with an embedded Apache Derby database but a different data source, or with a different database, see Setting up a default UDDI node.

If you want to set up a UDDI node with your own properties, including the mandatory node properties, you must set up a customized node. See 設定自訂的 UDDI 節點.

Procedure

  1. Create the UDDI node by running the wsadmin script uddiDeploy.jacl from the app_server_root/bin directory.

    [AIX Solaris HP-UX Linux Windows]For the UNIX or Linux operating systems, add the .sh suffix to the wsadmin command.

    Use the following syntax:[AIX Solaris HP-UX Linux Windows][IBM i]
    wsadmin [-conntype none] [-profileName profile_name] 
                   -wsadmin_classpath app_server_root/derby/lib 
                   -f uddiDeploy.jacl 
                   node_name 
                   server_name
                   default
    where:
    • -profileName profile_name is optional, and is the name of the profile in which the UDDI application is deployed. If you do not specify a profile, the default profile is used.
    • -conntype none is optional, and is needed only if the application server is not running.
    • app_server_root is the directory name of the WebSphere® Application Server installation location.
    • node_name is the name of the WebSphere node on which the target server runs. Note that the node name is case sensitive.
    • server_name is the name of the target server that deploys the UDDI registry, for example, server1. The server name is case sensitive.
    • default creates a UDDI node with default policies in an Apache Derby database and data source. This option is specific to the Apache Derby database only and creates everything required to run a UDDI node.
      If the Apache Derby database already exists, you are asked if you want to re-create it. If you choose to re-create the database, the existing database is deleted and a new one is created in its place. If you choose not to re-create the database, the command exits and a new database is not created.
      Note: If the application server has already accessed the existing Apache Derby database, the uddiDeploy.jacl script cannot re-create the database. Use the uddiRemove.jacl script to remove the database, as described in the topic about removing a UDDI registry node, restart the server, and run the uddiDeploy.jacl script again.
    For example, to create a UDDI node named MyNode on a server named server1 when server1 is started, you might enter the following command. Enter the command on a single line.[AIX Solaris HP-UX Linux Windows]
    wsadmin -wsadmin_classpath C:\Progra~1\IBM\WebSphere\AppServer\derby\lib 
    -f uddiDeploy.jacl MyNode server1 default
    [IBM i]
    wsadmin -profileName myProfile -wsadmin_classpath /QIBM/ProdData/WebSphere/
    AppServer/was_version/Base/derby/lib -f uddiDeploy.jacl MyNode server1 default
    To create a UDDI node named MyNode on a server named server1 when server1 is not started, you might enter the following command. Enter the command on a single line.[AIX Solaris HP-UX Linux Windows]
    wsadmin -conntype none -wsadmin_classpath C:\Progra~1\IBM\WebSphere\AppServer\
    derby\lib -f uddiDeploy.jacl MyNode server1 default
    [IBM i]
    wsadmin -conntype none -profileName myProfile -wsadmin_classpath /QIBM/ProdData/
    WebSphere/AppServer/was_version/Base/derby/lib -f uddiDeploy.jacl MyNode server1 default
  2. [AIX][HP-UX][Linux][Solaris]對於 DB2® 資料庫,停止執行中的伺服器。針對啟動伺服器的 DB2 使用者,編輯其使用者設定檔。修改使用者設定檔來執行 db2profile Script,此 Script 位於 DB2 使用者 ID 的根目錄中 (例如,/home/db2inst1/sqllib/db2profile)。 或者,您也可以手動執行 db2profile Script,但每次重新啟動伺服器時都必須這樣做。 輸入下列指令(在此指令中,句點後面有一個空格字元):
    . /home/db2inst1/sqllib/db2profile
  3. 按一下應用程式 > 應用程式類型 > WebSphere 企業應用程式,顯示已安裝的應用程式。 選取應用程式名稱旁邊的勾選框,再按一下啟動,以啟動 UDDI 登錄應用程式。 或者,如果應用程式伺服器尚未執行,請啟動應用程式伺服器。此動作會自動啟動 UDDI 登錄應用程式。 UDDI 節點現在處於作用中的狀態。

    如果重新啟動 UDDI 應用程式或應用程式伺服器,則 UDDI 節點一律會重新啟動,即使該節點先前已取消啟動也一樣。

  4. Click UDDI > UDDI Nodes > UDDI_node_id to display the properties page for the UDDI registry node. Set Prefix for generated discoveryURLs to a valid URL for your configuration. This property specifies the URL prefix that is applied to generated discovery URLs that are used by the HTTP GET service for UDDI Version 2.

What to do next

Follow the instructions in Using the UDDI registry installation verification test (IVT) to verify that you have successfully set up the UDDI node.

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 8:14
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-base-dist&topic=twsu_default_install1
檔名:twsu_default_install1.html