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

📄 ch01s16.html

📁 详细介绍了jboss3.0的配置等
💻 HTML
字号:
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Conclusion</title><link rel="stylesheet" href="styles.css" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/styles.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets Vimages/callouts/"><link rel="home" href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html" title="JBoss 3.0 Documentation"><link rel="up" href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html" title="Chapter 1. First steps"><link rel="previous" href="ch01s15.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s15.html" title="Coding and compiling the test client"><link rel="next" href="ch02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch02.html" title="Chapter 2. Configuration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table border="0" cellpadding="0" cellspacing="0" height="65"><tr height="65"><td rowspan="2"><img src="jboss.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/jboss.gif" border="0"></td><td rowspan="2" background="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="100%" align="right" valign="top"><a href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="doc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/doc.gif" border="0"></a><a href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="ch01s15.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s15.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch02.html"><img src="next.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/next.gif" border="0"></a></td></tr><tr></tr></table><div class="section"><a name="d0e445"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="d0e445"></a>Conclusion</h2></div></div><p>Let's end with a very short summary of the stuff just described:</p><div class="section"><a name="d0e450"></a><div class="titlepage"><div><h3 class="title"><a name="d0e450"></a>On the server</h3></div></div><p>For each EJB (which could be a stateless session, a statefull session
or an entitiy bean) we need three files:
</p><div class="itemizedlist"><ul><li><p><a name="d0e456"></a>bean implementation</p></li><li><p><a name="d0e459"></a>remote interface</p></li><li><p><a name="d0e462"></a>home interface</p></li></ul></div><p>
The resulting classes and one
or more deployment desciptors (ejb-jar.xml, jboss.xml, ...) in the
META-INF directory are together packaged into a jar file.
</p><p>For deployment this jar file is simply copied to jboss/deploy/.</p></div><div class="section"><a name="d0e469"></a><div class="titlepage"><div><h3 class="title"><a name="d0e469"></a>On the client</h3></div></div><p>We code the client to</p><div class="itemizedlist"><ul><li><p><a name="d0e475"></a>look up the home interface of the bean from the JNDI service</p></li><li><p><a name="d0e478"></a>create a new bean or retrieve a existing one from the
home interface</p></li><li><p><a name="d0e481"></a>use the received remote interface to access the
business methods of the bean implementation on the server</p></li></ul></div><p>
But before the client can look up a home interface, the client needs
to know where the JNDI service is located. Therefore we have to provide
a jndi.properties file. This file and some (most) jars from the
jboss/client/ directory need to be included into the CLASSPATH to get
the client running properly.
</p></div></div><table border="0" cellpadding="0" cellspacing="0" height="65"><tr height="65"><td rowspan="2"><img src="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="432" height="79"></td><td rowspan="2" background="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="100%" align="right" valign="top"><a href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="doc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/doc.gif" border="0"></a><a href="ch01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="ch01s15.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s15.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch02.html"><img src="next.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/next.gif" border="0"></a></td></tr><tr></tr></table></body></html>

⌨️ 快捷键说明

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