?? orb.html
字號:
<?xml version="1.0" encoding="GB2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"><head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312" /> <meta name="keywords" content="electronic commerce, ecommerce, ebusiness, e-business, e-commerce, enterprise software, net economy, Sun Microsystems, Sun Open Net Environment, Sun ONE, internet software" /> <meta name="Description" content="Sun Microsystems, Inc. is delivering Sun ONE e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy." /> <meta name="TemplateVersion" content="Sun ONE WDT 2.3.1" /> <meta name="LASTUPDATED" content="10/03/03 09:48:23" /> <meta name="BookTitle" content="Sun Java System Application Server Enterprise Edition 8.1 Administration Guide 2005Q1" /> <title>第 18 章 配置對象請求代理</title> <link href="catalog.css" tppabs="http://docs.sun.com/source/819-1553/catalog.css" rel="stylesheet" type="text/css" /> <!-- on load bring this window to front --> <script laguage="javascript"> top.window.focus(); </script></head><body text="#000000" link="#594FBF" vlink="#9966cc" alink="#333366" bgcolor="#FFFFFF"><a name="top"> </a><!-- navigation --> <table width="100%" border="0" cellspacing="4" summary="Header navigation table"> <tr><td> <p class="pNavigation"> <a HREF="javascript:if(confirm('http://www.sun.com/software/ \n\n該文件無法用 Teleport Ultra 下載, 因?yàn)?它是一個(gè)域或路徑外部被設(shè)置為它的啟始地址的地址。 \n\n你想在服務(wù)器上打開它?'))window.location='http://www.sun.com/software/'" tppabs="http://www.sun.com/software/"> <img SRC="Logo.jpg" tppabs="http://docs.sun.com/source/819-1553/Logo.jpg" alt="Sun logo" valign="bottom" border="0" /></a>      <a href="httpservice.html" tppabs="http://docs.sun.com/source/819-1553/httpservice.html">上一頁</a>      <a href="index.html" tppabs="http://docs.sun.com/source/819-1553/index.html">目錄</a>      <a href="threadpools.html" tppabs="http://docs.sun.com/source/819-1553/threadpools.html">下一頁</a>      </p> </td></tr> <tr><td valign="top" align="right" bgcolor="#594FBF"> <span class="cBookTitle">Sun Java System Application Server Enterprise Edition 8.1 管理指南 2005Q1</span> </td></tr> </table><!-- end navigation --><blockquote><!-- chapter content --><a name="wp213015"> </a><h2 class="pChapNumber"><span class="cGray">第 18 章</span><br /><a name="wp213017"> </a>配置對象請求代理</h2><a name="wp213019"> </a><p class="pParagraph">本章介紹了如何配置對象請求代理 (ORB) 和 IIOP 偵聽器。本章包含以下幾節(jié):</p><div class="pSmartList1"><ul class="pSmartList1"><a name="wp213025"> </a><div class="pSmartList1"><li><a href="orb.html#wp213041" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213041">關(guān)于對象請求代理</a></li></div><a name="wp213031"> </a><div class="pSmartList1"><li><a href="orb.html#wp213137" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213137">用于 ORB 的管理控制臺任務(wù)</a></li></div><a name="wp213037"> </a><div class="pSmartList1"><li><a href="orb.html#wp213215" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213215">用于 IIOP 偵聽器的管理控制臺任務(wù)</a></li></div></ul></div><a name="wp213041"> </a><h2 class="pHeading1"><hr />關(guān)于對象請求代理</h2><div class="pSmartList1"><ul class="pSmartList1"><a name="wp213047"> </a><div class="pSmartList1"><li><a href="orb.html#wp213069" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213069">CORBA</a></li></div><a name="wp213053"> </a><div class="pSmartList1"><li><a href="orb.html#wp213085" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213085">什么是 ORB?</a></li></div><a name="wp213059"> </a><div class="pSmartList1"><li><a href="orb.html#wp213107" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213107">IIOP 偵聽器</a></li></div></ul></div><a name="wp213069"> </a><h3 class="pHeading2">CORBA</h3><a name="wp213075"> </a><p class="pParagraph">Application Server 支持標(biāo)準(zhǔn)的協(xié)議和格式集來確保互操作性。這些協(xié)議之間的協(xié)議是由 CORBA 定義的。</p><a name="wp213077"> </a><p class="pParagraph">CORBA(公共對象請求代理體系結(jié)構(gòu))模型的基礎(chǔ)是:客戶機(jī)以遠(yuǎn)程方法請求形式向分布式對象或服務(wù)器發(fā)出請求,并通過明確定義的接口從這些對象那里請求服務(wù)。遠(yuǎn)程方法請求攜帶了有關(guān)需要執(zhí)行的操作的信息,其中包括被調(diào)用方法的服務(wù)提供商的對象名稱(稱為對象引用)和參數(shù)(如果有)。CORBA 自動處理網(wǎng)絡(luò)程序任務(wù),如對象注冊、對象定位、對象激活、請求多路復(fù)用、錯(cuò)誤處理、編組和操作分發(fā)。</p><a name="wp213085"> </a><h3 class="pHeading2">什么是 ORB?</h3><a name="wp213087"> </a><p class="pParagraph">對象請求代理 (ORB) 是 CORBA 的核心組件。ORB 提供了識別和定位對象、處理連接管理、傳送數(shù)據(jù)和請求通信所需的框架結(jié)構(gòu)。</p><a name="wp213089"> </a><p class="pParagraph">CORBA 對象之間從不直接進(jìn)行通信,對象通過遠(yuǎn)程樁對運(yùn)行在本地計(jì)算機(jī)上的 ORB 發(fā)出請求。本地 ORB 使用 Internet Inter-Orb 協(xié)議(IIOP 為縮寫形式)將該請求傳遞給其他計(jì)算機(jī)上的 ORB。然后,遠(yuǎn)程 ORB 定位相應(yīng)的對象、處理該請求并返回結(jié)果。</p><a name="wp213091"> </a><p class="pParagraph">使用 RMI-IIOP,應(yīng)用程序或?qū)ο罂蓪?IIOP 用作遠(yuǎn)程方法調(diào)用 (RMI) 協(xié)議。企業(yè) Bean(EJB 模塊)的遠(yuǎn)程客戶機(jī)通過 RMI-IIOP 與 Application Server 進(jìn)行通信。 </p><a name="wp213107"> </a><h3 class="pHeading2">IIOP 偵聽器</h3><a name="wp213113"> </a><p class="pParagraph">IIOP 偵聽器是一個(gè)偵聽套接字,它接收來自企業(yè) Bean 的遠(yuǎn)程客戶機(jī)和其他基于 CORBA 的客戶機(jī)的外來連接。可以為 Application Server 配置多個(gè) IIOP 偵聽器。為每個(gè)偵聽器指定一個(gè)端口號、一個(gè)網(wǎng)絡(luò)地址和(可選)多個(gè)安全性屬性。有關(guān)更多信息,請參見<a href="orb.html#wp213241" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213241">創(chuàng)建 IIOP 偵聽器</a>。 </p><a name="wp213137"> </a><h2 class="pHeading1"><hr />用于 ORB 的管理控制臺任務(wù)</h2><div class="pSmartList1"><ul class="pSmartList1"><a name="wp213143"> </a><div class="pSmartList1"><li><a href="orb.html#wp213151" tppabs="http://docs.sun.com/source/819-1553/orb.html#wp213151">配置 ORB</a></li></div></ul></div><a name="wp213151"> </a><h3 class="pHeading2">配置 ORB</h3><div class="pSmartList1"><ol type="1" class="pSmartList1"><a name="wp213153"> </a><div class="pSmartList1"><li>在樹組件中,展開“配置”節(jié)點(diǎn)。</li></div><a name="wp213155"> </a><div class="pSmartList1"><li>選擇要配置的實(shí)例:</li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp213157"> </a><div class="pSmartList2"><li>要配置特定的實(shí)例,請選擇該實(shí)例的配置節(jié)點(diǎn)。例如,對于默認(rèn)實(shí)例 <code class="cCode">server</code>,請選擇 <code class="cCode">server-config</code> 節(jié)點(diǎn)。</li></div><a name="wp213159"> </a><div class="pSmartList2"><li>要為將來的實(shí)例(使用 <code class="cCode">default-config</code> 的副本)配置默認(rèn)設(shè)置,請選擇 <code class="cCode">default-config</code> 節(jié)點(diǎn)。</li></div></ol></div><a name="wp213161"> </a><div class="pSmartList1"><li>選擇“ORB”節(jié)點(diǎn)。</li></div><a name="wp213163"> </a><div class="pSmartList1"><li>從“線程池 ID”下拉式列表中選擇 ORB 使用的線程池。</li></div><a name="wp213173"> </a><p class="pStepParaI1">ORB 使用線程池響應(yīng)來自通過 RMI-IIOP 進(jìn)行通信的企業(yè) Bean 的遠(yuǎn)程客戶機(jī)和其他客戶機(jī)的請求。有關(guān)更多信息,請參見<a href="threadpools.html#wp40684" tppabs="http://docs.sun.com/source/819-1553/threadpools.html#wp40684">Application Server 中的線程池</a>和<a href="threadpools.html#wp40758" tppabs="http://docs.sun.com/source/819-1553/threadpools.html#wp40758">創(chuàng)建線程池</a>。</p><a name="wp213175"> </a><div class="pSmartList1"><li>在“最大消息片段大小”字段中,設(shè)置 IIOP 消息的最大片段大小。</li></div><a name="wp213177"> </a><p class="pStepParaI1">大于此大小的消息將被分段。</p><a name="wp213179"> </a><div class="pSmartList1"><li>在“連接總數(shù)”字段中,設(shè)置所有 IIOP 偵聽器的最大外來連接數(shù)。</li></div><a name="wp213181"> </a><div class="pSmartList1"><li>如果需要進(jìn)行 IIOP 客戶機(jī)驗(yàn)證,請選中“需要”復(fù)選框。</li></div><a name="wp213183"> </a><div class="pSmartList1"><li>單擊“保存”以保存更改,或者單擊“裝入默認(rèn)值”以裝入默認(rèn)值。</li></div><a name="wp213185"> </a><div class="pSmartList1"><li>重新啟動服務(wù)器。</li></div></ol></div><a name="wp213215"> </a><h2 class="pHeading1"><hr />
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -