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

📄 ch01s10.html

📁 详细介绍了jboss3.0的配置等
💻 HTML
字号:
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>EJBs: review</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="ch01s09.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s09.html" title="Creating the Bean"><link rel="next" href="ch01s11.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s11.html" title="Review the EJB Classes"></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="ch01s09.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s09.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s11.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s11.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="d0e263"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="d0e263"></a>EJBs: review</h2></div></div><p> As a reminder, and Enterprise JavaBean has a minimum of three 
classes, the remote interface, the home interface, and the bean implementation.
The remote interface is the class that exposes the methods of 
the EJB to the outside world. In the example, the remote interface is the 
class org.jboss.docs.interest.Interest. 
The home interface specifies how to create a bean that implements the remote interface.
In this example, the home interface is org.jboss.docs.InterestHome.
The bean implementation provides an
implementation of the methods specified by the remote and home interfaces. In this
example, the Bean class is org.jboss.docs.interest.InterestBean.</p><p> Of course, a Bean can include other classes, or even other packages, 
but the classes listed above are the minimum. The classes must be packaged 
into a JAR archive with a directory structure that reflects the hierarchy of 
packages. In the example, the classes are in the package 
org.jboss.docs.interest, so they need to be in the directory org/jboss/docs/interest/
which is what you will find in the examples distribution.</p><p>Before the jar archive with all the classes is created there must be a directory called META-INF
to store the deployment descriptor (always called ejb-jar.xml) and -- optionally -- another XML file 
to tell the server about application specific server infomormation. With JBoss, this file must be called 
jboss.xml.</p><p>The jar file you created is then deployed on the JBoss
		server. On the client side you need a jndi.properties
		file that tells your client where to initially find
		the JNDI naming service. From this service the client
		will look up the Interest bean and get back the home
		interface of the bean. The home interface is used to
		get a remote interface of the bean. He can now use
		this remote interface to access the functions provided
		by the Enterprise Java Bean a.k.a EJB.</p></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="ch01s09.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s09.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s11.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s11.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 + -