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

📄 jms7.html

📁 j2eePDF格式的电子书
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</td></tr>  <tr align="left">    <td><a name="wp96637"> </a><div class="pCellBody"><code class="cCode">&lt;jms-durable-subscription-name&gt;</code></div></td>    <td><a name="wp96641"> </a><div class="pCellBody">Specifies the name of a durable subscription associated with a message-driven bean's destination.  Required for a Topic destination if the <code class="cCode">subscriptionDurability</code> activation configuration property is set to <code class="cCode">Durable</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89489"> </a><div class="pCellBody"><code class="cCode">&lt;resource-ref&gt;</code></div></td>    <td><a name="wp89491"> </a><div class="pCellBody">Specifies the runtime bindings of a resource reference. Contains the elements <code class="cCode">&lt;res-ref-name&gt;</code> and <code class="cCode">&lt;jndi-name&gt;</code> and, optionally, <code class="cCode">&lt;default-resource-principal&gt;</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89493"> </a><div class="pCellBody"><code class="cCode">&lt;res-ref-name&gt;</code></div></td>    <td><a name="wp89495"> </a><div class="pCellBody">Specifies the coded name of a JMS connection factory, such as <code class="cCode">jms/MyConnectionFactory</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89497"> </a><div class="pCellBody"><code class="cCode">&lt;default-resource-principal&gt;</code></div></td>    <td><a name="wp89499"> </a><div class="pCellBody">Specifies the username and password to be used to access the connection factory, using the <code class="cCode">&lt;name&gt;</code> and <code class="cCode">&lt;password&gt;</code> elements.</div></td></tr>  <tr align="left">    <td><a name="wp89501"> </a><div class="pCellBody"><code class="cCode">&lt;message-destination&gt;</code></div></td>    <td><a name="wp89503"> </a><div class="pCellBody">Specifies the name and JNDI name of a logical message destination. Contains the elements <code class="cCode">&lt;message-destination-name&gt;</code> and <code class="cCode">&lt;jndi-name&gt;</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89505"> </a><div class="pCellBody"><code class="cCode">&lt;message-destination-name&gt;</code></div></td>    <td><a name="wp89507"> </a><div class="pCellBody">Specifies the name of a logical message destination. This logical name, which was also specified by the module deployment descriptor (see <a  href="JMS7.html#wp88615">Table 29-3</a>), is now linked to the JNDI name of the destination.</div></td></tr>  <tr align="left">    <td><a name="wp89509"> </a><div class="pCellBody"><code class="cCode">&lt;jndi-name&gt;</code></div></td>    <td><a name="wp89511"> </a><div class="pCellBody">The JNDI name of a JMS resource, which may be either a connection factory or a destination. This is the name you specified when you created the resource administratively.</div></td></tr></table></div><p class="pBody"></p><a name="wp89449"> </a><h4 class="pHeading3">Specifying Activation Configuration Properties for Message-Driven Beans</h4><a name="wp89557"> </a><p class="pBody">Activation configuration properties are needed to configure message-driven beans at release 1.4 of the J2EE platform if the JMS API is integrated using a J2EE Connector Architecture resource adapter. This section describes the properties you may specify for message-driven beans that consume JMS messages.</p><a name="wp89448"> </a><p class="pBody">You may specify these properties either in the enterprise bean deployment descriptor or in the runtime deployment descriptor, or both. Any properties specified in the runtime deployment descriptor override the properties specified in the enterprise bean deployment descriptor.</p><a name="wp89566"> </a><p class="pBody"><a  href="JMS7.html#wp89569">Table 29-6</a> lists these properties.</p><div align="left"><table border="1" summary="Activation Configuration Property Names and Values" id="wp89569">  <caption><a name="wp89569"> </a><div class="pTableTitle">Table 29-6   Activation Configuration Property Names and Values</div></caption>  <tr align="center">    <th><a name="wp89573"> </a><div class="pCellHeading">Property Name</div></th>    <th><a name="wp89575"> </a><div class="pCellHeading">Description and Values</div></th></tr>  <tr align="left">    <td><a name="wp89577"> </a><div class="pCellBody"><code class="cCode">destinationType</code></div></td>    <td><a name="wp89579"> </a><div class="pCellBody">The interface type of the destination, either <code class="cCode">javax.jms.Topic</code> or <code class="cCode">javax.jms.Queue</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89585"> </a><div class="pCellBody"><code class="cCode">messageSelector</code></div></td>    <td><a name="wp89587"> </a><div class="pCellBody">A message selector.</div></td></tr>  <tr align="left">    <td><a name="wp89589"> </a><div class="pCellBody"><code class="cCode">subscriptionDurability</code></div></td>    <td><a name="wp89591"> </a><div class="pCellBody">A value of <code class="cCode">Durable</code> indicates that the message-driven bean is a durable subscriber to a topic. If the value is <code class="cCode">Durable</code>, then the <code class="cCode">clientId</code> and <code class="cCode">subscriptionName</code> properties must also be specified.</div><a name="wp94496"> </a><div class="pCellBody">A value of <code class="cCode">NonDurable</code> specifies that the bean is not using a durable subscription. If omitted, the bean is assumed to be a nondurable subscriber if the <code class="cCode">destinationType</code> value is <code class="cCode">javax.jms.Topic</code>.</div></td></tr>  <tr align="left">    <td><a name="wp89601"> </a><div class="pCellBody"><code class="cCode">acknowledgeMode</code></div></td>    <td><a name="wp89603"> </a><div class="pCellBody">The acknowledgment mode of the bean, either <code class="cCode">Auto-acknowledge</code> or <code class="cCode">Dups-ok-acknowledge</code>. If not specified, assumed to be <code class="cCode">Auto-acknowledge</code>. </div></td></tr></table></div><p class="pBody"></p>    </blockquote>   <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider">    <table width="550" summary="layout" id="SummaryNotReq1">      <tr>	<td align="left" valign="center">	<font size="-1">	<a href="http://java.sun.com/j2ee/1.4/download.html#tutorial" target="_blank">Download</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/faq.html" target="_blank">FAQ</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/history.html" target="_blank">History</a>	</td>        <td align="center" valign="center"><a accesskey="p" href="JMS6.html"><img id="LongDescNotReq1" src="images/PrevArrow.gif" width="26" height="26" border="0" alt="Prev" /></a><a accesskey="c" href="J2EETutorialFront.html"><img id="LongDescNotReq1" src="images/UpArrow.gif" width="26" height="26" border="0" alt="Home" /></a><a accesskey="n" href="JMS8.html"><img id="LongDescNotReq3" src="images/NextArrow.gif" width="26" height="26" border="0" alt="Next" /></a><a accesskey="i" href="J2EETutorialIX.html"></a>        </td>	<td align="right" valign="center">	<font size="-1">	<a href="http://java.sun.com/j2ee/1.4/docs/api/index.html" target="_blank">API</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/search.html" target="_blank">Search</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/sendusmail.html" target="_blank">Feedback</a></font>	</font>	</td>      </tr>    </table>    <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"><p><font size="-1">All of the material in <em>The J2EE(TM) 1.4 Tutorial</em> is <a href="J2EETutorialFront2.html">copyright</a>-protected and may not be published in other workswithout express written permission from Sun Microsystems.</font>  </body></html>

⌨️ 快捷键说明

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