⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jb7-1-1.htm

📁 jbuilder教程~!快来下载吧~! 这个很好快来啊~
💻 HTM
📖 第 1 页 / 共 4 页
字号:
</o:p>
</span></b></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">开发一个</span><span lang="EN-US">EJB</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">应用程序的工作被分割为六个分工明确的角色。每一个角色都是各领域的专家。通过这样的分割方式,创建和管理一个分布式系统变得更为容易。</span></p>
<p class="MsoNormal" style="text-indent:21.0pt"><font color="#000080"><b><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">应用角色</span><span lang="EN-US">(Application  
roles)</span></b></font></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">应用角色负责为</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">编写代码和开发应用程序使用它们。虽然标准不同,但这两个角色都需要懂得怎样使商业逻辑运行起来。以下就是着两个应用角色:</span></p>
<p class="MsoNormal" style="margin-left:57.0pt;text-indent:-21.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 57.0pt"><span lang="EN-US" style="font-family:
Wingdings">l</span><span lang="EN-US">Bean </span><span style="font-family: 
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">开发者(</span><span lang="EN-US">Bean  
provider</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">)</span></p>
<p class="MsoNormal" style="margin-left:57.0pt"><span lang="EN-US">Bean </span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family: 
&quot;Times New Roman&quot;">开发者创建</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">并编写</span><span lang="EN-US">enterprise beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family: 
&quot;Times New Roman&quot;">中的商业逻辑规则。他们也负责定义</span><span lang="EN-US"><span style="mso-tab-count:1">&nbsp; 
</span>beans</span><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">的</span><span lang="EN-US">remote</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">和</span><span lang="EN-US">home</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">接口,创建</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">部署描述器(</span><span lang="EN-US">deployment  
descriptors</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">)</span><span lang="EN-US">. Bean </span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family: 
&quot;Times New Roman&quot;">开发者并不需要知道怎样组合与部署他们的</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">。</span></p>
<p class="MsoNormal" style="margin-left:57.0pt;text-indent:-21.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 57.0pt"><span lang="EN-US" style="font-family:
Wingdings">l</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">应用组合者(</span><span lang="EN-US">Application  
assembler</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">)</span></p>
<p class="MsoNormal" style="margin-left:57.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">应用组合者编写使用</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">的应用程序。这些应用程序通常包含其它的组件,列如</span><span lang="EN-US">GUI  
clients,applet,JSP</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">和</span><span lang="EN-US">servlets</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">。这些组件被组合入分布式应用程序。应用组合者要将组合说明添加入</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">部署描述器(</span><span lang="EN-US">deployment  
descriptors</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">)。虽然应用组合者必须熟悉</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">中包含的方法以用于调用它们,但他们不必知道这些方法是怎样实现的。</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">对</span><span lang="EN-US">Enterprise  
JavaBeans </span><span style="font-family:宋体;mso-ascii-font-family: 
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">感兴趣的</span><span lang="EN-US">Jbuilder</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">用户通常是</span><span lang="EN-US">Bean  
</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">开发者和应用组合者。因而主要是为他们编写的。</span><span lang="EN-US">Jbuilder</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">具有向导、设计和其他工具,使用它们可以简化</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">和应用程序的开发。</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;"><font color="#000080">底层结构角色</font></span><span lang="EN-US"><o:p>
</o:p>
</span></b></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">没有底层结构的支持,</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">和使用它们的应用程序不能运行。虽然两个底层结构角色差别很大,但它们总是由同一个开发商提供。它们结合在一起为</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">提供系统级的服务运行环境。以下就是这两个底层结构角色:</span></p>
<p class="MsoNormal" style="margin-left:57.0pt;text-indent:-21.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 57.0pt"><span lang="EN-US" style="font-family:
Wingdings">l</span><span lang="EN-US">EJB</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">服务器提供者(</span><span lang="EN-US">EJB  
server provider</span><span style="font-family:宋体;mso-ascii-font-family: 
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">)</span></p>
<p class="MsoNormal" style="margin-left:57.0pt"><span lang="EN-US">EJB</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">服务器提供者是负责分布式事务管理,分布式对象管理及其它系统级服务的专家。他们提供运行</span><span lang="EN-US">EJB</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">容器的应用框架。</span><span lang="EN-US">EJB</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">服务器提供者必须至少为</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">提供一个命名服务和事务服务。</span></p>
<p class="MsoNormal" style="margin-left:57.0pt;text-indent:-21.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 57.0pt"><span lang="EN-US" style="font-family:
Wingdings">l</span><span lang="EN-US">EJB </span><span style="font-family: 
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">容器提供者</span><span lang="EN-US">(EJB  
Container Provider)</span></p> 
<p class="MsoNormal" style="margin-left:57.0pt"><span lang="EN-US">EJB </span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">容器提供者提供必须的部署工具来部署</span><span lang="EN-US">enterprise  
beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">并为处于运行状态的</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">提供支持。一个容器可以为一个或多个</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">提供管理服务,它们代替</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">与</span><span lang="EN-US">EJB</span><span style="font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">服务器通信,以访问</span><span lang="EN-US">beans</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">需要的服务。</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">当前几乎所有实例中,</span><span lang="EN-US">EJB  
</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">服务器提供者和</span><span lang="EN-US">EJB  
</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">容器提供者来自同一个开发商。例如,</span><span lang="EN-US">Borland  
</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">公司的</span><span lang="EN-US">AppServer</span><span style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">既提供了服务器又提供了容器。</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><font color="#000080"><span style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">部署与运行角色</span></font><span lang="EN-US"><font color="#000080"><o:p>
</font> 
</o:p>
</span></b></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:宋体;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -