📄 ch01.html
字号:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 1. First steps</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="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html" title="JBoss 3.0 Documentation"><link rel="previous" href="pr01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/pr01.html" title="Docbook"><link rel="next" href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.html" title="Installing Ant"></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="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="pr01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/pr01.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.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="chapter"><div class="titlepage"><div><h2 class="title"><a name="d0e95"></a>Chapter 1. First steps</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="ch01.html#d0e131" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01.html#d0e131">Introduction</a></dt><dt><a href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.html">Installing Ant</a></dt><dt><a href="ch01s06.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s06.html">Installing JBoss</a></dt><dt><a href="ch01s08.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s08.html">Downloading the Documentation Example Source</a></dt><dt><a href="ch01s09.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s09.html">Creating the Bean</a></dt><dt><a href="ch01s10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s10.html">EJBs: review</a></dt><dt><a href="ch01s11.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s11.html">Review the EJB Classes</a></dt><dt><a href="ch01s12.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s12.html">The deployment descriptor</a></dt><dt><a href="ch01s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s14.html">Packaging and deploying the bean</a></dt><dt><a href="ch01s15.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s15.html">Coding and compiling the test client</a></dt><dt><a href="ch01s16.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s16.html">Conclusion</a></dt></dl></div><p>Authors:<span class="author">Kevin Boone</span>
<tt><<a href="mailto:k.boone@web-tomorrow.com">k.boone@web-tomorrow.com</a>></tt>
</p><p>
<span class="author">Tobias Frech</span>
<tt><<a href="mailto:tobias.frech@student.uni-tuebingen.de">tobias.frech@student.uni-tuebingen.de</a>></tt>
</p><p>
<span class="author">Scott Stark</span>
<tt><<a href="mailto:Scott_Stark@displayscape.com">Scott_Stark@displayscape.com</a>></tt>
</p><div class="section"><a name="d0e131"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="d0e131"></a>Introduction</h2></div></div><div class="section"><a name="d0e134"></a><div class="titlepage"><div><h3 class="title"><a name="d0e134"></a>What this section is about</h3></div></div><p>This section presents a step-by-step tutorial on how to set up 'JBoss', the free
Enterprise JavaBean (EJB) server, and create your first Enterprise JavaBean and client. It doesn't explain what
Enterprise JavaBeans are, or how they are used; there are a number of good
introductory articles on Sun's JavaSoft Web site. Although the description is
based on the use of a Linux server, most of the issues discussed in
this article will also apply to other platforms. If you are using a Windows
platform you will need to pay attention to the directory names, which
will be different from the one's I've assumed. </p></div><div class="section"><a name="d0e139"></a><div class="titlepage"><div><h3 class="title"><a name="d0e139"></a>About JBoss</h3></div></div><p>JBoss is an implementation of the EJB 1.1 (and parts of 2.0)
specification, that is, it is a server and container for Enterprise JavaBeans. In this it is similar to Sun's
'J2SDK Enterprise Edition' (J2EE), but the JBoss core server provides only an EJB server.
The JBoss core does not include a web container for servlets/JSP pages, although there are
bundles available that include either Tomcat or Jetty.
The minimal core offering means that JBoss has minimal memory and disk space
requirements. JBoss will run very effectively on a machine with 64 megabytes of RAM, and
requires only a few megabytes of disk (including source code!). Sun's
J2EE requires a minimum of 128 megabytes of RAM, and 31 megabytes of disk
space. Because of its small memory footprint, JBoss starts up about 10 times faster than J2EE.
There is a built-in SQL database server for handling persistent beans, and
this starts up automatically with the server (J2EE ships with the
CloudScape SQL server, which has to be started separately). </p><p>One of the nicest features of JBoss is its support for `hot'
deployment. What this means is that deploying a Bean is a simple as copying its
JAR file into the deployment directory. If this is done while the Bean is
already loaded, JBoss automatically unloads it, then loads the new
version. Contrast this with the rigmarole that other J2EE server makes us go through...
JBoss is distributed under the LGPL, which means that it's free, even for commercial
work, and the LGPL ensures that it remains that way. Id you need support, look at the JBoss website for the various forums. If you want to pay for the support then contact the <a href="javascript:if(confirm('http://www.jboss.org/jbossgroup/services.jsp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.jboss.org/jbossgroup/services.jsp'" tppabs="http://www.jboss.org/jbossgroup/services.jsp" target="_top">JBossGroup LLC</a>.</p><p>This chapter helps get you started using JBoss
by describing step-by-step how a simple EJB can be created, deployed and
tested on the JBoss server. </p></div><div class="section"><a name="d0e151"></a><div class="titlepage"><div><h3 class="title"><a name="d0e151"></a>Prerequisites</h3></div></div><p>JBoss is written entirely in Java, and requires a Java system compatible with JDK 1.3. This is essential,
not optional. Since
it is now possible to get Linux JDKs directly from Sun, there's little reason not to upgrade if you're using an earlier version.</p><p>You also need to have Ant version 1.4 or latter on your system as this is used to compile and run
all of the examples that will be presented in the JBoss documentation. The next section describes how to obtain and
install ant if you don't already have it.</p><p>It is assumed that you are basically familiar with EJBs (and roughly know, for example, what a 'home interface' is) and know how to use Ant, the xml based build tool available from Apache.</p></div></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="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="pr01.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/pr01.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch01s05.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch01s05.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 + -