cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache CXF Documentation > CXF 2.x JMS configuration (removed in CXF 3)
Date Wed, 16 Apr 2014 09:24:02 GMT
<html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <base href="https://cwiki.apache.org/confluence" />
        <style type="text/css">
    body, #email-content, #email-content-inner { font-family: Arial,FreeSans,Helvetica,sans-serif; }
    body, p, blockquote, pre, code, td, th, li, dt, dd { font-size: 13px; }
    small { font-size: 11px; }

    body { width:100% !important; -webkit-font-smoothing: antialiased; }

    body,
    #email-wrapper { background-color: #f0f0f0; }
    #email-wrapper-inner { padding: 20px; text-align: center; }
    #email-content-inner { background-color: #fff; border: 1px solid #bbb; color: $menuTxtColour; padding:20px; text-align:left; }
    #email-wrapper-inner > table { width: 100%; }
    #email-wrapper-inner.thin > table { margin: 0 auto; width: 50%; }
    #email-footer { padding: 0 16px 32px 16px; margin: 0; }

    .email-indent { margin: 8px 0 16px 0; }
    .email-comment { margin: 0 0 0 56px; }
    .email-comment.removed { background-color: #ffe7e7; border: 1px solid #df9898; padding: 0 8px;}

    #email-title-avatar { text-align: left; vertical-align: top; width: 48px; padding-right: 8px; }
    #email-title-flavor { margin: 0; padding: 0 0 4px 0; }
    #email-title-heading { font-size: 16px; line-height: 20px; min-height: 20px; margin: 0; padding: 0; }
    #email-title .icon { border: 0; padding: 0 5px 0 0; text-align: left; vertical-align: middle; }

    #email-actions { border-top: 1px solid #bbb; color: #505050; margin: 8px 0 0 0; padding: 0; }
    #email-actions td { padding-top: 8px; }
    #email-actions .left { max-width: 45%; text-align: left; }
    #email-actions .right { text-align: right; }
    .email-reply-divider { border-top: 1px solid #bbb; color: #505050; margin: 32px 0 8px 0; padding: 8px 0; }
    .email-section-title { border-bottom: 1px solid #bbb; margin: 8px 0; padding: 8px 0 0 0; }

    .email-metadata { color: #505050; }

    a { color: #326ca6; text-decoration: none; }
    a:hover { color: #336ca6; text-decoration: underline; }
    a:active {color: #326ca6; }

    a.email-footer-link { color: #505050; font-size: 11px; }

    .email-item-list { list-style: none; margin: 4px 0; padding-left: 0; }
    .email-item-list li { list-style: none; margin: 0; padding: 4px 0; }
    .email-list-divider { color: #505050; padding: 0 0.35em; }
    .email-operation-icon { padding-right: 5px; }

    .avatar { -ms-interpolation-mode: bicubic; border-radius: 3px;}
    .avatar-link { margin: 2px; }

    .tableview th { border-bottom: 1px solid #69C; font-weight: bold; text-align: left; }
    .tableview td { border-bottom: 1px solid #bbbbbb; text-align: left; padding: 4px 16px 4px 0; }

    .aui-message {  margin: 1em 0; padding: 8px; }
    .aui-message.info { background-color: #e0f0ff; border: 1px solid #9eb6d4; }
    .aui-message.success { background-color: #ddfade; border: 1px solid #93c49f; }
    .aui-message.error,
    .aui-message.removed { background-color: #ffe7e7; border: 1px solid #df9898; color: #000; }

    .call-to-action-table { margin: 10px 1px 1px 1px;}
    .call-to-cancel-container, .call-to-action-container { padding: 5px 20px; }
    .call-to-cancel-container { border: 1px solid #aaa; background-color: #eee; border-radius: 3px; }
    .call-to-cancel-container a.call-to-cancel-button { background-color: #eee; font-size: 14px; line-height: 1; padding: 0; margin: 0; color: #666; font-family: sans-serif;}
    .call-to-action-container { border: 1px solid #486582;  background-color: #3068A2; border-radius: 3px; padding: 4px 10px; }
    .call-to-action-container a.call-to-action-button { background-color: #3068A2; font-size: 14px; line-height: 1; padding: 0; margin: 0; color: #fff; font-weight: bold; font-family: sans-serif; }

    /** The span around the inline task checkbox image */
    .diff-inline-task-overlay {
        display: inline-block;
        text-align: center;
        height: 1.5em;
        padding: 5px 0px 1px 5px;
        margin-right: 5px;
        /** Unfortunately, the negative margin-left is stripped out in gmail */
        margin-left: -5px;
    }

            @media handheld, only screen and (max-device-width: 480px) {
        div, a, p, td, th, li, dt, dd { -webkit-text-size-adjust: auto; }
        small, small a { -webkit-text-size-adjust: 90%; }

        td[id=email-wrapper-inner] { padding: 2px !important; }
        td[id=email-content-inner] { padding: 8px !important; }
        td[id="email-wrapper-inner"][class="thin"] > table { text-align: left !important; width: 100% !important; }
        td[id=email-footer] { padding: 8px 12px !important; }
        div[class=email-indent] { margin: 8px 0px !important; }
        div[class=email-comment] { margin: 0 !important; }

        p[id=email-title-flavor] a { display: block; } /* puts the username and the action on separate lines */
        p[id=email-permalink] { padding: 4px 0 0 0 !important; }

        table[id=email-actions] td { padding-top: 0 !important; }
        table[id=email-actions] td.right { text-align: right !important; }
        table[id=email-actions] .email-list-item { display: block; margin: 1em 0 !important; word-wrap: normal !important; }
        span[class=email-list-divider] { display: none; }
    }



        </style>
    </head>
    <body style="font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 13px; width: 100%; -webkit-font-smoothing: antialiased; background-color: #f0f0f0">
        <table id="email-wrapper" width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color: #f0f0f0">
            <tbody>
                <tr valign="middle">
                    <td id="email-wrapper-inner" style="font-size: 13px; padding: 20px; text-align: center">
                        <table id="email-content" cellspacing="0" cellpadding="0" border="0" style="font-family: Arial, FreeSans, Helvetica, sans-serif; width: 100%">
                            <tbody>
                                <tr valign="top">
                                    <td id="email-content-inner" align="left" style="font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 13px; background-color: #fff; border: 1px solid #bbb; padding: 20px; text-align: left">
                                        <table id="email-title" cellpadding="0" cellspacing="0" border="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td id="email-title-avatar" rowspan="2" style="font-size: 13px; text-align: left; vertical-align: top; width: 48px; padding-right: 8px"> <img class="avatar" src="cid:avatar_20a517c9414511790f2eeb3ec277a81b" border="0" height="48" width="48" style="-ms-interpolation-mode: bicubic; border-radius: 3px" /> </td>
                                                    <td valign="top" style="font-size: 13px">
                                                        <div id="email-title-flavor" class="email-metadata" style="margin: 0; padding: 0 0 4px 0; color: #505050">
                                                            <a href="    https://cwiki.apache.org/confluence/display/~christian+schneider " style="color:#326ca6;text-decoration:none;; color: #326ca6; text-decoration: none">Christian Schneider</a> created a page:
                                                        </div> </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" style="font-size: 13px"> <h2 id="email-title-heading" style="font-size: 16px; line-height: 20px; min-height: 20px; margin: 0; padding: 0"> <a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=40508913" style="color: #326ca6; text-decoration: none"> <img class="icon" src="cid:page-icon" alt="" style="border: 0; padding: 0 5px 0 0; text-align: left; vertical-align: middle" /> <strong style="font-size:16px;line-height:20px;vertical-align:top;">CXF 2.x JMS configuration (removed in CXF 3)</strong> </a> </h2> </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <div class="email-indent" style="margin: 8px 0 16px 0">
                                            <div class="email-page">
                                                <p style="font-size: 13px">Standard JMS transport configuration in CXF is done by defining a JMSConduit or JMSDestination, discussed below.</p>
                                                <h2 id="CXF2.xJMSconfiguration(removedinCXF3)-JMSNamespaces">JMS Namespaces</h2>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-WSDLNamespace">WSDL Namespace</h3>
                                                <p style="font-size: 13px">The WSDL extensions for defining a JMS endpoint are defined in the namespace <code style="font-size: 13px"><a href="http://cxf.apache.org/transports/jms" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">http://cxf.apache.org/transports/jms</a></code>. In order to use the JMS extensions you will need to add the namespace definition shown below to the definitions element of your contract.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS Extension Namespace</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">xmlns:jms=&quot;http://cxf.apache.org/transports/jms&quot;
</pre>
                                                    </div>
                                                </div>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-ConfigurationNamespaces">Configuration Namespaces</h3>
                                                <p style="font-size: 13px">In order to use the JMS configuration properties you will need to add the line shown below to the <code style="font-size: 13px">beans</code> element of your configuration.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS Configuration Namespaces</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">xmlns:jms=&quot;http://cxf.apache.org/transports/jms&quot;
</pre>
                                                    </div>
                                                </div>
                                                <h2 id="CXF2.xJMSconfiguration(removedinCXF3)-BasicEndpointConfiguration">Basic Endpoint Configuration</h2>
                                                <p style="font-size: 13px">JMS endpoints need to know certain basic information about how to establish a connection to the proper destination. This information can be provided in one of two places: WSDL or XML configuration. The following configuration elements which are described can be used in both the client side Conduits and the server side Destinations.</p>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingWSDL">Using WSDL</h3>
                                                <p style="font-size: 13px">The JMS destination information is provided using the <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element and its child, the <code style="font-size: 13px">jms:JMSNamingProperties</code> element. The <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element's attributes specify the information needed to identify the JMS broker and the destination. The <code style="font-size: 13px">jms:JMSNamingProperties</code> element specifies the Java properties used to connect to the JNDI service.</p>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Theaddresselement">The address element</h4>
                                                <p style="font-size: 13px">The basic configuration for a JMS endpoint is done by using a <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element as the child of your service's <code style="font-size: 13px">port</code> element. The <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element uses the attributes described below to configure the connection to the JMS broker.</p>
                                                <p style="font-size: 13px"> <span class="confluence-anchor-link" id="CXF2.xJMSconfiguration(removedinCXF3)-addressTable"></span> </p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">destinationStyle</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies if the JMS destination is a JMS queue or a JMS topic.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">jndiConnectionFactoryName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the JNDI name bound to the JMS connection factory to use when connecting to the JMS destination.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">jndiDestinationName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the JNDI name bound to the JMS destination to which requests are sent.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">jndiReplyDestinationName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the JNDI name bound to the JMS destinations where replies are sent. This attribute allows you to use a user defined destination for replies.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">connectionUserName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the username to use when connecting to a JMS broker.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">connectionPassword</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the password to use when connecting to a JMS broker.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-TheJMSNamingPropertieselement">The JMSNamingProperties element</h4>
                                                <p style="font-size: 13px">To increase interoperability with JMS and JNDI providers, the <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element has a child element, <code style="font-size: 13px">jms:JMSNamingProperties</code>, that allows you to specify the values used to populate the properties used when connecting to the JNDI provider. The <code style="font-size: 13px">jms:JMSNamingProperties</code> element has two attributes: <code style="font-size: 13px">name</code> and <code style="font-size: 13px">value</code>. The <code style="font-size: 13px">name</code> attribute specifies the name of the property to set. The <code style="font-size: 13px">value</code> attribute specifies the value for the specified property. The <code style="font-size: 13px">jms:JMSNamingProperties</code> element can also be used for specification of provider specific properties.<br /> The following is a list of common JNDI properties that can be set:</p>
                                                <ol>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.factory.initial</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.provider.url</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.factory.object</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.factory.state</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.factory.url.pkgs</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.dns.url</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.authoritative</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.batchsize</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.referral</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.security.protocol</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.security.authentication</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.security.principal</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.security.credentials</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.language</code> </li>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">java.naming.applet</code> </li>
                                                </ol>
                                                <p style="font-size: 13px">For more details on what information to use in these attributes, check your JNDI provider's documentation and consult the Java API reference material.</p>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Usinganamedreplydestination">Using a named reply destination</h4>
                                                <p style="font-size: 13px">By default, CXF endpoints using JMS create a temporary queue for sending replies back and forth. You can change this behavior by setting the <code style="font-size: 13px">jndiReplyDestinationName</code> attribute in the endpoint's contract. A client endpoint will listen for replies on the specified destination and it will specify the value of the attribute in the <code style="font-size: 13px">ReplyTo</code> field of all outgoing requests. A service endpoint will use the value of the <code style="font-size: 13px">jndiReplyDestinationName</code> attribute as the location for placing replies if there is no destination specified in the request's <code style="font-size: 13px">ReplyTo</code> field.</p>
                                                <p style="font-size: 13px">A static reply queue can not be shared by several instances of the service client. Please use a dynamic reply queue or different queue names per instance instead.</p>
                                                <p style="font-size: 13px">The following example shows an example of a JMS WSDL port specification.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS WSDL Port Specification</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;service name=&quot;JMSService&quot;&gt;
  &lt;port binding=&quot;tns:Greeter_SOAPBinding&quot; name=&quot;SoapPort&quot;&gt;
    &lt;jms:address jndiConnectionFactoryName=&quot;ConnectionFactory&quot;
                 jndiDestinationName=&quot;dynamicQueues/test.cxf.jmstransport&quot;&gt;
      &lt;jms:JMSNamingProperty name=&quot;java.naming.factory.initial&quot;
                             value=&quot;org.apache.activemq.jndi.ActiveMQInitialContextFactory&quot; /&gt;
      &lt;jms:JMSNamingProperty name=&quot;java.naming.provider.url&quot;
                             value=&quot;tcp://localhost:61616&quot; /&gt;
    &lt;/jms:address&gt;
  &lt;/port&gt;
&lt;/service&gt;
</pre>
                                                    </div>
                                                </div>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingConfiguration">Using Configuration</h3>
                                                <p style="font-size: 13px">In addition to using the WSDL file to specify the connection information for a JMS endpoint, you can also supply it in the endpoint's XML configuration. The information in the configuration file will override the information in the endpoint's WSDL file.</p>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Configurationelements">Configuration elements</h4>
                                                <p style="font-size: 13px">You configure a JMS endpoint using one of the following configuration elements:</p>
                                                <ul>
                                                    <li style="font-size: 13px"> <p style="font-size: 13px"> <strong><a href="http://jmsconduit" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:conduit</a></strong>:&nbsp;The <code style="font-size: 13px"><a href="http://jmsconduit" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:conduit</a></code> element contains the configuration for a consumer endpoint. It has one attribute, <code style="font-size: 13px">name</code>, whose value takes the form</p>
                                                        <div class="preformatted panel" style="border-width: 1px;">
                                                            <div class="preformattedContent panelContent">
                                                                <pre style="font-size: 13px">{WSDLNamespace}WSDLPortName.jms-conduit
</pre>
                                                            </div>
                                                        </div> <p style="font-size: 13px">.</p> </li>
                                                    <li style="font-size: 13px"> <p style="font-size: 13px"> <strong><a href="http://jmsdestination" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:destination</a></strong>:&nbsp;The <code style="font-size: 13px"><a href="http://jmsdestination" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:destination</a></code> element contains the configuration for a provider endpoint. It has one attribute, <code style="font-size: 13px">name</code>, whose value takes the form</p>
                                                        <div class="preformatted panel" style="border-width: 1px;">
                                                            <div class="preformattedContent panelContent">
                                                                <pre style="font-size: 13px">{WSDLNamespace}WSDLPortName.jms-destination
</pre>
                                                            </div>
                                                        </div> <p style="font-size: 13px">.</p> </li>
                                                </ul>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Theaddresselement.1">The <code style="font-size: 13px">address</code> element</h4>
                                                <p style="font-size: 13px">JMS connection information is specified by adding a <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> child to the base configuration element. The <code style="font-size: 13px"><a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a></code> element used in the configuration file is identical to the one used in the WSDL file. Its attributes are listed in the <a href="#CXF2.xJMSconfiguration(removedinCXF3)-addressTable" style="color: #326ca6; text-decoration: none">address element's attribute table</a>. Like the <a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a> element in the WSDL file, the <a href="http://jmsaddress" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:address</a> configuration element also has a <code style="font-size: 13px">jms:JMSNamingProperties</code> child element that is used to specify additional information used to connect to a JNDI provider.</p>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Example">Example</h4>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>Addressing Information a Configuration File</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:ct=&quot;http://cxf.apache.org/configuration/types&quot;
       xmlns:jms=&quot;http://cxf.apache.org/transports/jms&quot;
       xsi:schemaLocation=&quot;
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd
           http://cxf.apache.org/jaxws
           http://cxf.apache.org/schemas/jaxws.xsd
           http://cxf.apache.org/transports/jms
           http://cxf.apache.org/schemas/configuration/jms.xsd&quot;&gt;
&lt;jms:conduit name=&quot;{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit&quot;&gt;
  &lt;jms:address destinationStyle=&quot;queue&quot;
               jndiConnectionFactoryName=&quot;myConnectionFactory&quot;
               jndiDestinationName=&quot;myDestination&quot;
               jndiReplyDestinationName=&quot;myReplyDestination&quot;
               connectionUserName=&quot;testUser&quot;
               connectionPassword=&quot;testPassword&quot;&gt;
    &lt;jms:JMSNamingProperty name=&quot;java.naming.factory.initial&quot;
         value=&quot;org.apache.cxf.transport.jms.MyInitialContextFactory&quot;/&gt;
    &lt;jms:JMSNamingProperty name=&quot;java.naming.provider.url&quot;
         value=&quot;tcp://localhost:61616&quot;/&gt;
  &lt;/jms:address&gt;
&lt;/jms:conduit&gt;
&lt;/beans&gt;
</pre>
                                                    </div>
                                                </div>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-ConsumerEndpointConfiguration">Consumer Endpoint Configuration</h3>
                                                <p style="font-size: 13px">JMS consumer endpoints specify the type of messages they use. JMS consumer endpoint can use either a JMS <code style="font-size: 13px">ObjectMessage</code> or a JMS <code style="font-size: 13px">TextMessage</code>. When using an <code style="font-size: 13px">ObjectMessage</code> the consumer endpoint uses a <code style="font-size: 13px">byte[]</code> as the method for storing data into and retrieving data from the JMS message body. When messages are sent, the message data, including any formating information, is packaged into a <code style="font-size: 13px">byte[]</code> and placed into the JMS message body before it is placed on the wire. When messages are received, the consumer endpoint will attempt to unmarshall the data stored in the JMS body as if it were packed in a <code style="font-size: 13px">byte[]</code>.</p>
                                                <p style="font-size: 13px">When using a <code style="font-size: 13px">TextMessage</code>, the consumer endpoint uses a string as the method for storing and retrieving data from the JMS message body. When messages are sent, the message information, including any format-specific information, is converted into a string and placed into the JMS message body. When messages are received the consumer endpoint will attempt to unmashall the data stored in the JMS message body as if it were packed into a string.</p>
                                                <p style="font-size: 13px">When native JMS applications interact with CXF consumers, the JMS application is responsible for interpreting the message and the formatting information. For example, if the CXF contract specifies that the binding used for a JMS endpoint is SOAP, and the messages are packaged as <code style="font-size: 13px">TextMessage</code>, the receiving JMS application will get a text message containing all of the SOAP envelope information.</p>
                                                <p style="font-size: 13px">Consumer endpoint can be configured by both XML configuration and via WSDL.</p>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingConfiguration.1">Using Configuration</h3>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Specifyingthemessagetype">Specifying the message type</h4>
                                                <p style="font-size: 13px">You can specify the message type supported by the consumer endpoint using a <code style="font-size: 13px"><a href="http://jmsruntimePolicy" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:runtimePolicy</a></code> element that has a single attribute:</p>
                                                <ul>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">messageType</code> - Specifies how the message data will be packaged as a JMS message. <code style="font-size: 13px">text</code> specifies that the data will be packaged as a <code style="font-size: 13px">TextMessage</code>. <code style="font-size: 13px">binary</code> specifies that the data will be packaged as an <code style="font-size: 13px">ObjectMessage</code>.</li>
                                                </ul>
                                                <p style="font-size: 13px">The following example shows a configuration entry for configuring a JMS consumer endpoint.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>Configuration for a JMS Consumer Endpoint</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:ct=&quot;http://cxf.apache.org/configuration/types&quot;
       xmlns:jms=&quot;http://cxf.apache.org/transports/jms&quot;
       xsi:schemaLocation=&quot;
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd&quot;
           http://cxf.apache.org/jaxws
           http://cxf.apache.org/schemas/jaxws.xsd
           http://cxf.apache.org/transports/jms
           http://cxf.apache.org/schemas/configuration/jms.xsd&quot;&gt;
...
&lt;jms:conduit name=&quot;{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit&quot;&gt;
  &lt;jms:address ... &gt;
    ...
  &lt;/jms:address&gt;
  &lt;jms:runtimePolicy messageType=&quot;binary&quot;/&gt;
...
&lt;/jms:conduit&gt;
...
&lt;/beans&gt;
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px">The id on the <code style="font-size: 13px"><a href="http://jmsconduit" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:conduit</a></code> is in the form of {<code style="font-size: 13px"><em>WSDLNamespace</em>}<em>WSDLPortName</em>.jms-conduit</code>. This provides CXF with the information so that it can associate the configuration with your service's endpoint.</p>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingWSDL.1">Using WSDL</h3>
                                                <p style="font-size: 13px">The type of messages accepted by a JMS consumer endpoint is configured using the optional <code style="font-size: 13px"><a href="http://jmsclient" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:client</a></code> element. The <code style="font-size: 13px"><a href="http://jmsclient" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:client</a></code> element is a child of the WSDL port element and has one attribute:</p>
                                                <ul>
                                                    <li style="font-size: 13px"> <code style="font-size: 13px">messageType</code> - Specifies how the message data will be packaged as a JMS message. <code style="font-size: 13px">text</code> specifies that the data will be packaged as a <code style="font-size: 13px">TextMessage</code>. <code style="font-size: 13px">binary</code> specifies that the data will be packaged as an ObjectMessage.</li>
                                                </ul>
                                                <h2 id="CXF2.xJMSconfiguration(removedinCXF3)-ServiceEndpointConfiguration">Service Endpoint Configuration</h2>
                                                <p style="font-size: 13px">JMS service endpoints have a number of behaviors that are configurable in the contract. These include:</p>
                                                <ul>
                                                    <li style="font-size: 13px">how messages are correlated</li>
                                                    <li style="font-size: 13px">the use of durable subscriptions</li>
                                                    <li style="font-size: 13px">if the service uses local JMS transactions</li>
                                                    <li style="font-size: 13px">the message selectors used by the endpoint</li>
                                                </ul>
                                                <p style="font-size: 13px">Service endpoints can be configure in one of two ways:</p>
                                                <ul>
                                                    <li style="font-size: 13px">Configuration</li>
                                                    <li style="font-size: 13px">WSDL</li>
                                                </ul>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingConfiguration.2">Using Configuration</h3>
                                                <h4 id="CXF2.xJMSconfiguration(removedinCXF3)-Specifyingconfigurationdata">Specifying configuration data</h4>
                                                <p style="font-size: 13px">Using the <code style="font-size: 13px"><a href="http://jmsdestination" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:destination</a></code> elements you can configure your service's endpoint. You can specify the service endpoint's behaviors using the <code style="font-size: 13px"><a href="http://jmsruntimePolicy" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:runtimePolicy</a></code> element that has a the following attributes:</p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">useMessageIDAsCorrealationID</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies whether the JMS broker will use the message ID to correlate messages. The default is <code style="font-size: 13px">false</code>.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">durableSubscriberName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the name used to register a durable subscription.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">messageSelector</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the string value of a message selector to use. For more information on the syntax used to specify message <br class="atl-forced-newline" /> selectors, see the JMS 1.1 specification.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">transactional</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies whether the local JMS broker will create transactions around message processing. The default is <code style="font-size: 13px">false</code>.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <p style="font-size: 13px">The following example shows a CXF configuration entry for configuring a JMS service endpoint.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>Configuration for a JMS Service Endpoint</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:ct=&quot;http://cxf.apache.org/configuration/types&quot;
       xmlns:jms=&quot;http://cxf.apache.org/transports/jms&quot;
       xsi:schemaLocation=&quot;
           http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd&quot;
           http://cxf.apache.org/jaxws
           http://cxf.apache.org/schemas/jaxws.xsd
           http://cxf.apache.org/transports/jms
           http://cxf.apache.org/schemas/configuration/jms.xsd&quot;&gt;
...
&lt;jms:destination name=&quot;{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination&quot;&gt;
  &lt;jms:address ... &gt;
    ...
  &lt;/jms:address&gt;
  ...
  &lt;jms:runtimePolicy messageSelector=&quot;cxf_message_selector&quot;
       useMessageIDAsCorrelationID=&quot;true&quot;
       transactional=&quot;true&quot;
       durableSubscriberName=&quot;cxf_subscriber&quot; /&gt;
  ...
&lt;/jms:destination&gt;
...
&lt;/beans&gt;
</pre>
                                                    </div>
                                                </div>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-UsingWSDL.2">Using WSDL</h3>
                                                <p style="font-size: 13px">Service endpoint behaviors are configured using the optional <code style="font-size: 13px"><a href="http://jmsserver" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:server</a></code> element. The <code style="font-size: 13px"><a href="http://jmsserver" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:server</a></code> element is a child of the WSDL <code style="font-size: 13px">port</code> element and has the following attributes:</p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">useMessageIDAsCorrealationID</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies whether JMS will use the message ID to correlate messages. The default is <code style="font-size: 13px">false</code>.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">durableSubscriberName</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the name used to register a durable subscription.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">messageSelector</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the string value of a message selector to use. For more information on the syntax used to specify message <br class="atl-forced-newline" /> selectors, see the JMS 1.1 specification.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">transactional</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies whether the local JMS broker will create transactions around message processing. The default is <code style="font-size: 13px">false</code>. Currently, this is not supported by the runtime.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <h2 id="CXF2.xJMSconfiguration(removedinCXF3)-JMSRuntimeConfiguration">JMS Runtime Configuration</h2>
                                                <p style="font-size: 13px">In addition to configuring the externally visible aspects of your JMS endpoint, you can also configure aspects of its internal runtime behavior. There are three types of runtime configuration:</p>
                                                <ul>
                                                    <li style="font-size: 13px">Session pool configuration (common to both services and consumers)</li>
                                                    <li style="font-size: 13px">Consumer specific configuration</li>
                                                    <li style="font-size: 13px">Service specific configuration</li>
                                                </ul>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-SessionPoolConfiguration">Session Pool Configuration</h3>
                                                <p style="font-size: 13px">You configure an endpoint's JMS session pool using the <code style="font-size: 13px"><a href="http://jmssessionPoolConfig" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:sessionPoolConfig</a></code> element. This property allows you to set a high and low water mark for the number of JMS sessions an endpoint will keep pooled. The endpoint is guaranteed to maintain a pool of sessions equal to the low water mark and to never pool more sessions than specified by the high water mark.<br /> The <code style="font-size: 13px"><a href="http://jmssessionPool" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:sessionPool</a></code> element's attributes, listed below, specify the high and low water marks for the endpoint's JMS session pool.</p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">lowWaterMark</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the minimum number of JMS sessions pooled by the endpoint. The default is 20.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">highWaterMark</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the maximum number of JMS sessions pooled by the endpoint. The default is 500.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <p style="font-size: 13px">The following example shows an example of configuring the session pool for a CXF JMS service endpoint.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS Session Pool Configuration</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;jms:destination
   name=&quot;{http://cxf.apache.org/jms_endpit}HelloWorldJMSPort.jms-destination&quot;&gt;
...
  &lt;jms:sessionPool lowWaterMark=&quot;10&quot; highWaterMark=&quot;5000&quot; /&gt;
&lt;/jms:destination&gt;
</pre>
                                                    </div>
                                                </div>
                                                <p style="font-size: 13px">The <code style="font-size: 13px"><a href="http://jmssessionPool" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:sessionPool</a></code> element can also be used within a <code style="font-size: 13px"><a href="http://jmsconduit" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:conduit</a></code>.</p>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-ConsumerSpecificRuntimeConfiguration">Consumer Specific Runtime Configuration</h3>
                                                <p style="font-size: 13px">The JMS consumer configuration allows you to specify two runtime behaviors:</p>
                                                <ul>
                                                    <li style="font-size: 13px">the number of milliseconds the consumer will wait for a response.</li>
                                                    <li style="font-size: 13px">the number of milliseconds a request will exist before the JMS broker can remove it.</li>
                                                </ul>
                                                <p style="font-size: 13px">You use the <code style="font-size: 13px"><a href="http://jmsclientConfig" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:clientConfig</a></code> element to set JMS consumer runtime behavior. This element's attributes, listed in the following table, specify the configuration values for consumer runtime behavior.</p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">clientReceiveTimeout</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the amount of time, in milliseconds, that the endpoint will wait for a response before it times out and issues an exception. The default value is 2000.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">messageTimeToLive</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the amount of time, in milliseconds, that a request can remain unrecieved before the JMS broker can delete it. The default value is 0 which specifies that the message can never be deleted.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <p style="font-size: 13px">The following example shows a configuration fragment that sets the consumer endpoint's request lifetime to 500 milliseconds and its timeout value to 500 milliseconds.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS Consumer Endpoint Runtime Configuration</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;jms:conduit name=&quot;{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit&quot;&gt;
...
  &lt;jms:clientConfig clientReceiveTimeout=&quot;500&quot;
                    messageTimeToLive=&quot;500&quot; /&gt;
&lt;/jms:conduit&gt;
</pre>
                                                    </div>
                                                </div>
                                                <h3 id="CXF2.xJMSconfiguration(removedinCXF3)-ServiceSpecificRuntimeConfiguration">Service Specific Runtime Configuration</h3>
                                                <p style="font-size: 13px">The JMS service configuration allows you to specify to runtime behaviors:</p>
                                                <ul>
                                                    <li style="font-size: 13px">the amount of time a response message can remain unreceived before the JMS broker can delete it.</li>
                                                    <li style="font-size: 13px">the client identifier used when creating and accessing durable subscriptions.</li>
                                                </ul>
                                                <p style="font-size: 13px">The <code style="font-size: 13px"><a href="http://jmsserverConfig" class="external-link" rel="nofollow" style="color: #326ca6; text-decoration: none">jms:serverConfig</a></code> element is used to specify the service runtime configuration. This element's attributes, listed below, specify the configuration values that control the service's runtime behavior.</p>
                                                <div class="table-wrap">
                                                    <table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;">
                                                        <tbody>
                                                            <tr>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Attribute</p> </th>
                                                                <th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; font-size: 13px"> <p style="font-size: 13px">Description</p> </th>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">messageTimeToLive</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the amount of time, in milliseconds, that a response can remain unread before the JMS broker is allowed to delete it. The default is 0 which specifies that the message can live forever.</p> </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px"> <code style="font-size: 13px">durableSubscriptionClientId</code> </p> </td>
                                                                <td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; font-size: 13px"> <p style="font-size: 13px">Specifies the client identifier the endpoint uses to create and access durable subscriptions.</p> </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                                <p style="font-size: 13px">The following example shows a configuration fragment that sets the service endpoint's response lifetime to 500 milliseconds and its durable subscription client identifier to <code style="font-size: 13px">jms-test-id</code>.</p>
                                                <div class="code panel pdl" style="border-width: 1px;">
                                                    <div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;">
                                                        <b>JMS Service Endpoint Runtime Configuration</b>
                                                    </div>
                                                    <div class="codeContent panelContent pdl">
                                                        <pre class="theme: Default; brush: java; gutter: false" style="font-size:12px;; font-size: 13px">&lt;jms:destination id=&quot;{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination&quot;&gt;
  &lt;jms:address ... &gt;
    ...
  &lt;/jms:address&gt;
  &lt;jms:serverConfig messageTimeToLive=&quot;500&quot;
                    durableSubscriptionClientId=&quot;jms-test-id&quot; /&gt;
&lt;/jms:destination&gt;
</pre>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <table id="email-actions" class="email-metadata" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-top: 1px solid #bbb; color: #505050; margin: 8px 0 0 0; padding: 0; color: #505050">
                                            <tbody>
                                                <tr>
                                                    <td class="left" valign="top" style="font-size: 13px; padding-top: 8px; max-width: 45%; text-align: left"> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=40508913" style="color: #326ca6; text-decoration: none">View Online</a> </span> <span class="email-list-divider" style="color: #505050; padding: 0 0.350em">&middot;</span> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/plugins/likes/like.action?contentId=40508913" style="color: #326ca6; text-decoration: none">Like</a> </span> </td>
                                                    <td class="right" width="50%" valign="top" style="font-size: 13px; padding-top: 8px; text-align: right"> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=CXF20DOC" style="color: #326ca6; text-decoration: none">Stop watching space</a> </span> <span class="email-list-divider" style="color: #505050; padding: 0 0.350em">&middot;</span> <span class="email-list-item"><a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action" style="color: #326ca6; text-decoration: none">Manage Notifications</a> </span> </td>
                                                </tr>
                                            </tbody>
                                        </table> </td>
                                </tr>
                            </tbody>
                        </table> </td>
                </tr>
                <tr>
                    <td id="email-footer" align="center" style="font-size: 13px; padding: 0 16px 32px 16px; margin: 0"> <small style="font-size: 11px"> This message was sent by <a class="email-footer-link" style="color:#505050;font-size:11px;text-decoration:none;; color: #326ca6; text-decoration: none; color: #505050; font-size: 11px" href="http://www.atlassian.com/software/confluence">Atlassian Confluence</a> 5.0.3, <a class="email-footer-link" style="color:#505050;font-size:11px;text-decoration:none;; color: #326ca6; text-decoration: none; color: #505050; font-size: 11px" href="http://www.atlassian.com/software/confluence/overview/team-collaboration-software?utm_source=email-footer">Team Collaboration Software</a> </small> </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
Mime
View raw message