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

📄 ch07.html

📁 详细介绍了jboss3.0的配置等
💻 HTML
字号:
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Chapter 7. Advanced container configuration : use of jboss.xml</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="ch06s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch06s14.html" title="Dependant Value Objects [since JBoss 2.4]"><link rel="next" href="ch07s02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s02.html" title="Declaring Resource Reference"></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="ch06s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch06s14.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch07s02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s02.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="adv.config"></a>Chapter 7. Advanced container configuration : use of jboss.xml</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="ch07.html#d0e2479" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07.html#d0e2479">What is jboss.xml?</a></dt><dt><a href="ch07s02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s02.html">Declaring Resource Reference</a></dt><dt><a href="ch07s10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s10.html">Specifying the deployment name of your beans</a></dt><dt><a href="ch07s13.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s13.html">Declaring an EJB reference</a></dt><dt><a href="ch07s16.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s16.html">Container configuration</a></dt><dt><a href="ch07s22.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s22.html">Web container configuration : use of jboss-web.xml</a></dt></dl></div><p>Author:<span class="author">Sebastien Alborini</span>
		<tt>&lt;<a href="mailto:sebastien.alborini@m4x.org">sebastien.alborini@m4x.org</a>&gt;</tt>
	</p><p>JBoss 2.2 compliance checked by:<span class="author">Vincent Harcq</span>
		<tt>&lt;<a href="mailto:vincent.harcq@hubmethods.com">vincent.harcq@hubmethods.com</a>&gt;</tt>  
	</p><div class="section"><a name="d0e2479"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="d0e2479"></a>What is jboss.xml?</h2></div></div><p>To deploy your beans, you have to specify (nearly) everything about them in a 
file called ejb-jar.xml.
This file will be stored in the META-INF directory in your ejb-jar file. The 
content and syntax of 
this file in specified in the ejb1.1 specification (16.5 Deployment descriptor 
DTD, pp 244-259).</p><p>An important point is that the specification does not allow you to add 
vendor-specific configuration 
in this file. While the ejb-jar.xml is sufficient for most applications, there 
may be cases where
you want to add JBoss-specific information in your deployment descriptor. This 
can be done by 
providing another file named jboss.xml in the META-INF directory.</p><p>Note that this file is almost NEVER required by JBoss: JBoss will always 
provide a standard behaviour
when no jboss.xml file is found. JBoss does that by first processing a 
standardjboss.xml file which 
contains the standard configuration.</p><p>The following sections will cover most common uses of the jboss.xml file. If you want to know all the details, you can get the DTD for jboss.xml in the <a href="javascript:if(confirm('http://www.jboss.org/doco_files/  \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/doco_files/'" tppabs="http://www.jboss.org/doco_files/" target="_top">file section</a> of the manual. A graphical view of the DTD is given in <a href="ch07.html#adv.config.dtd" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07.html#adv.config.dtd" title="Figure 7.1. The jboss.xml DTD">Figure 7.1</a>
		</p><div class="figure"><p><a name="adv.config.dtd"></a><b>Figure 7.1. The jboss.xml DTD</b></p><div class="mediaobject"><img src="jboss_dtd.jpg" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/jboss_dtd.jpg"></div></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="ch06s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch06s14.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch07s02.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch07s02.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 + -