?? dag_into.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>開發(fā)分布式應用程序</title>
</head>
<body bgcolor="#fefef2" style="FONT-SIZE: 9pt">
<STRONG><FONT color=#0080FF size=3 >開發(fā)分布式應用程序</font></strong>
<hr>
<p>
譯者名字: qiandeng(JD017)<br>
郵件地址:<A href="mailto:qiandeng@163.net">qiandeng@163.net</A>
<!--BNDX="distributed applications:overview;Java Remote Method Invocation (RMI);RMI;CORBA;VisiBroker;Interface Definition Language. See also IDL;distributed applications:creating"-->
</p>
<blockquote class="bsku">
<font color="#FF0000">
這是JBuilder企業(yè)版才有的功能。</font>
</blockquote>
<p><a name="Developing_CORBA_RMI_Enterprise_and_Web_applications_using_JBuilder" target="_blank"></a><!--BNDX="Common Object Request Broker Architecture. See also CORBA;IIOP interfaces;ORB (Object Request Broker);Internet InterORB Protocol. See also IIOP"-->
</p>
<p>JBuilder對分布式應用開發(fā)提供了很好的支持。在JBuilder開發(fā)環(huán)境開發(fā)分布式應用將更加簡單。它會幫你自動創(chuàng)建許多多層應用所必須的文件,你只要在上面增添你的商業(yè)邏輯代碼就可以了。</p>
<p>這本指南是給一些熟悉分布式開發(fā)的人準備的,如果你認為自己還不是很熟悉,或是想參考一些第三方的書籍,則在Borland公司的站點上推薦了幾本好書:
<a href="../../../www.borland.com/visibroker/books/default.htm" target="_blank">http://www.borland.com/visibroker/books/</a>.</p>
<p>下列技術將在這本指南進行討論:</p>
<ul>
<li>通用對象請求代理體系(Common Object Request Broker Architecture
(CORBA))
<p>CORBA是一種開放的分布式計算的解決方案。工業(yè)組織Object
Management Group (OMG),設計和規(guī)范了CORBA和Internet InterORB Protocol
(IIOP協(xié)議)標準, the standard communication protocol between Object
Request Brokers (ORBs). To read the specification, 訪問OMG的Web站點<a href="../../../www.omg.org/default.htm" target="_blank">http://www.omg.org/</a>,你可以得到一些有用的信息。</p>
<p>CORBA的主要優(yōu)勢是客戶端和服務器端可以用任何一種程序語言書寫。這是因為對象統(tǒng)一用IDL(Interface
Definition Language)語言來定義,然后在對象,客戶端,服務器端用ORB(
Object Request Brokers)來代理。</p>
<p>JBuilder對分布式應用開發(fā)提供了很好的支持。在JBuilder開發(fā)環(huán)境開發(fā)分布式應用將更加簡單。它會幫你自動創(chuàng)建許多多層應用所必須的文件,你只要在上面增添你的商業(yè)邏輯代碼就可以了。</p>
<p>對于創(chuàng)建CORBA應用程序的一些步驟,你可以參看 <a href="../../../us.f202.mail.yahoo.com/ym/CORBA_tutorial.html" target="_blank">"Exploring
CORBA-based distributed applications in JBuilder."</a>
。如果你安裝了Borland AppServer,你可以在<code>Borland/AppServer/examples/vbj</code>
目錄發(fā)現一些用IDL接口創(chuàng)建的一些CORBA示例。</p>
<li>遠程方法調用RMI(Remote Method Invocation)
<p>使用RMI可以創(chuàng)建Java-to-Java的分布式應用程序。它可以讓你在不同的機器上調用其他遠程機器上的JAVA對象的方法。A
Java program can make a call on a remote object once it obtains a reference
to the remote object, either by looking up the remote object in the
bootstrap naming service provided by RMI or by receiving the reference as an
argument or a return value. A client can call a remote object in a server.
That server can also be a client of other remote objects. RMI uses object
serialization to marshal and unmarshal parameters and does not truncate
types, supporting true object-oriented polymorphism.</p>
<p>文章"Java Remote Method Invocation - Distributed Computing for
Java (a White Paper)" 很好的說明了如何使用JAVA RMI,你可以訪問如下地址:
<a href="../../../java.sun.com/marketing/collateral/javarmi.html" target="_blank">http://java.sun.com/marketing/collateral/javarmi.html</a>
來學習。</p>
<p>如何使用JBuilder創(chuàng)建RMI應用,請參看 <a href="../../../us.f202.mail.yahoo.com/ym/RMI_tutorial.html" target="_blank">"Exploring
Java RMI-based distributed applications in JBuilder."</a>。 JBuilderti提供了一些Java
RMI應用程序的示例。 一些示例文件在<code>samples/RMI</code>
目錄,還有一些示例在 <code>samples/DataExpress/StreamableDataSets目錄。</code></p>
<li>定義接口(in Java)
<p>在Java環(huán)境下VisiBroker合并了兩種編譯器編譯CORBA的語言,編譯器允許你用Java語言來定義Corba的接口
</p>
<ul>
<li><code>java2iiop</code>編譯器允許你都在Java的環(huán)境下完成所有的工作。<code>java2iiop</code>
編譯器使用Java語言并產生IIOP-compliant stubs和skeletons。這個編譯器還允許你使用Java對象的擴展結構。<br>
<br>
<li><code>java2idl編譯器根據你的</code>IDL文件來產生Java代碼,
允許你自由的選擇客戶端的設計語言(前提是他要支持Corba)。編譯器映射了IDL到Java接口,所以你在客戶端使用同一個IDL文件編譯,就可以訪問JAVA的Corba對象了。</li>
</ul>
<p>在JBuilder了如何使用這些編譯器,請參看 <a href="../../../us.f202.mail.yahoo.com/ym/caffeine.html" target="_blank">"Defining
interfaces in Java."</a></p>
</li>
</ul>
<p>關于多層開發(fā)的其他幫助如下:</p>
<ul>
<li><a href="../../../us.f202.mail.yahoo.com/ym/orbservicessetup.html" target="_blank">"Setting
up JBuilder for CORBA applications"</a>
<p>描述了在JBuilder使用VisiBrokr或者OrbixWeb該如何設置。</p>
<li><a href="../../../us.f202.mail.yahoo.com/ym/distdebugging.html" target="_blank">"Debugging
distributed applications"</a>
<p>解釋了該如何對JBuilder的遠程對象排錯。</p>
<li><a href="../../../us.f202.mail.yahoo.com/tutorials/remotedebug/remote_dbtutorial.html" target="_blank">"Remote
debugging tutorial"</a>
<p>Walks you through the process of attaching to a program already running
on a remote computer and debugging it.</p>
</li>
</ul>
<p>你應該定期的去訪問Borland公司的JBuilder技術官方站點 <a href="../../../www.borland.com/techpubs/jbuilder/default.htm" target="_blank">http://www.borland.com/techpubs/jbuilder/</a>
來更新你的文檔和關于分布式應用的一些資料。這個在線幫助系統(tǒng)可以從JBuilder的幫助菜單激活。并可以打印這些更新的消息。</p>
<p>如果你對分布式開發(fā)有疑問,你可以參加CORBA-RMI新聞組:borland.public.jbuilder.corba-rmi,地址
<a href="../../../www.borland.com/newsgroups/default.htm" target="_blank">http://www.borland.com/newsgroups/</a>.</p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -