cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r867253 [31/46] - in /websites/production/cxf/content: ./ 2008/04/28/ 2008/06/20/ 2009/02/10/ 2009/08/04/ cache/ docs/ docs/cxf-architecture.thumbs/ docs/cxf-dependency-graphs.thumbs/ docs/logbrowser-configuration.thumbs/ docs/logbrowser-so...
Date Mon, 24 Jun 2013 17:10:57 GMT
Modified: websites/production/cxf/content/docs/jaxrs-services-description.html
==============================================================================
--- websites/production/cxf/content/docs/jaxrs-services-description.html (original)
+++ websites/production/cxf/content/docs/jaxrs-services-description.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - JAXRS Services Description">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- JAXRS Services Description
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- JAXRS Services Description
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- JAXRS Services Description
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -139,43 +147,43 @@ RESTful Web applications. Please check t
 <p>A top level WADL document element is called "application". Usually it may contain a "grammars" section and "resources" element with one or more top-level "resource" elements, with each one representing a specific root resource, for example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;application xmlns=<span class="code-quote">"http://wadl.dev.java.net/2009/02"</span> <span class="code-keyword">xmlns:ns</span>=<span class="code-quote">"http://superbooks"</span>&gt;</span>
- <span class="code-tag">&lt;grammars&gt;</span>
-  &lt;xs:schema <span class="code-keyword">xmlns:xs</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema"</span> 
-        <span class="code-keyword">xmlns:tns</span>=<span class="code-quote">"http://superbooks"</span> attributeFormDefault=<span class="code-quote">"unqualified"</span> elementFormDefault=<span class="code-quote">"unqualified"</span> 
-        targetNamespace=<span class="code-quote">"http://superbooks"</span>&gt;
-    <span class="code-tag">&lt;xs:element name=<span class="code-quote">"thebook"</span> type=<span class="code-quote">"tns:book"</span>/&gt;</span>
-    <span class="code-tag">&lt;xs:complexType name=<span class="code-quote">"book"</span>&gt;</span>
-        <span class="code-tag">&lt;xs:sequence&gt;</span>
-            <span class="code-tag">&lt;xs:element minOccurs=<span class="code-quote">"0"</span> ref=<span class="code-quote">"tns:thechapter"</span>/&gt;</span>
-            <span class="code-tag">&lt;xs:element name=<span class="code-quote">"id"</span> type=<span class="code-quote">"xs:int"</span>/&gt;</span>
-        <span class="code-tag">&lt;/xs:sequence&gt;</span>
-    <span class="code-tag">&lt;/xs:complexType&gt;</span>
-  <span class="code-tag">&lt;/xs:schema&gt;</span>
- <span class="code-tag">&lt;/grammars&gt;</span>
- <span class="code-tag">&lt;resources base=<span class="code-quote">"http://localhost:8080/"</span>&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span>&gt;</span>
-     <span class="code-tag">&lt;param name=<span class="code-quote">"id"</span> style=<span class="code-quote">"template"</span>/&gt;</span>
-     <span class="code-tag">&lt;method name=<span class="code-quote">"GET"</span>&gt;</span>
-      <span class="code-tag">&lt;response&gt;</span>
-       <span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"ns:thebook"</span>/&gt;</span>
-      <span class="code-tag">&lt;/response&gt;</span>
-    <span class="code-tag">&lt;/method&gt;</span>
-   <span class="code-tag">&lt;/resource&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/books"</span>&gt;</span>
-      <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span>&gt;</span>
-        <span class="code-tag">&lt;param name=<span class="code-quote">"id"</span> style=<span class="code-quote">"template"</span>/&gt;</span>
-        <span class="code-tag">&lt;method name=<span class="code-quote">"GET"</span>&gt;</span>
-          <span class="code-tag">&lt;response&gt;</span>
-           <span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"ns:thebook"</span>/&gt;</span>
-          <span class="code-tag">&lt;/response&gt;</span>
-        <span class="code-tag">&lt;/method&gt;</span>
-      <span class="code-tag">&lt;/resource&gt;</span>
-   <span class="code-tag">&lt;/resource&gt;</span>
- <span class="code-tag">&lt;/resources&gt;</span>  
-<span class="code-tag">&lt;/application&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;application xmlns="http://wadl.dev.java.net/2009/02" xmlns:ns="http://superbooks"&gt;
+ &lt;grammars&gt;
+  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+        xmlns:tns="http://superbooks" attributeFormDefault="unqualified" elementFormDefault="unqualified" 
+        targetNamespace="http://superbooks"&gt;
+    &lt;xs:element name="thebook" type="tns:book"/&gt;
+    &lt;xs:complexType name="book"&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element minOccurs="0" ref="tns:thechapter"/&gt;
+            &lt;xs:element name="id" type="xs:int"/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+  &lt;/xs:schema&gt;
+ &lt;/grammars&gt;
+ &lt;resources base="http://localhost:8080/"&gt;
+   &lt;resource path="/bookstore/{id}"&gt;
+     &lt;param name="id" style="template"/&gt;
+     &lt;method name="GET"&gt;
+      &lt;response&gt;
+       &lt;representation mediaType="application/xml" element="ns:thebook"/&gt;
+      &lt;/response&gt;
+    &lt;/method&gt;
+   &lt;/resource&gt;
+   &lt;resource path="/books"&gt;
+      &lt;resource path="/bookstore/{id}"&gt;
+        &lt;param name="id" style="template"/&gt;
+        &lt;method name="GET"&gt;
+          &lt;response&gt;
+           &lt;representation mediaType="application/xml" element="ns:thebook"/&gt;
+          &lt;/response&gt;
+        &lt;/method&gt;
+      &lt;/resource&gt;
+   &lt;/resource&gt;
+ &lt;/resources&gt;  
+&lt;/application&gt;
+]]></script>
 </div></div> 
 
 <p>This document describes an application that has "http://localhost:8080/" base URI. It can handle GET requests such as<br clear="none">
@@ -199,34 +207,34 @@ RESTful Web applications. Please check t
 <p>Note that inlined schemas can be included instead by referencing external schemas. Likewise, most of WADL element declarations such as "resource", "method", "representation", etc can be shared by using the same document or external references. Here is how the basic example can be simplified with the help of references:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;application xmlns=<span class="code-quote">"http://wadl.dev.java.net/2009/02"</span> <span class="code-keyword">xmlns:ns</span>=<span class="code-quote">"http://superbooks"</span>&gt;</span>
- <span class="code-tag">&lt;grammars&gt;</span>
-   <span class="code-tag">&lt;include href=<span class="code-quote">"schemas/book.xsd"</span>/&gt;</span>
- <span class="code-tag">&lt;/grammars&gt;</span>
-
- <span class="code-tag">&lt;resource_type id=<span class="code-quote">"bookResource"</span>&gt;</span>
-     <span class="code-tag">&lt;param name=<span class="code-quote">"id"</span> style=<span class="code-quote">"template"</span>/&gt;</span>
-     <span class="code-tag">&lt;method name=<span class="code-quote">"GET"</span>&gt;</span>
-       <span class="code-tag">&lt;response&gt;</span>
-        <span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"ns:thebook"</span>/&gt;</span>
-       <span class="code-tag">&lt;/response&gt;</span>
-    <span class="code-tag">&lt;/method&gt;</span>
- <span class="code-tag">&lt;/resource_type&gt;</span>
-
- <span class="code-tag">&lt;resources base=<span class="code-quote">"http://localhost:8080/"</span>&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span> type=<span class="code-quote">"#bookResource"</span>/&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/books"</span>&gt;</span>
-      <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span> type=<span class="code-quote">"#bookResource"</span>/&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;application xmlns="http://wadl.dev.java.net/2009/02" xmlns:ns="http://superbooks"&gt;
+ &lt;grammars&gt;
+   &lt;include href="schemas/book.xsd"/&gt;
+ &lt;/grammars&gt;
+
+ &lt;resource_type id="bookResource"&gt;
+     &lt;param name="id" style="template"/&gt;
+     &lt;method name="GET"&gt;
+       &lt;response&gt;
+        &lt;representation mediaType="application/xml" element="ns:thebook"/&gt;
+       &lt;/response&gt;
+    &lt;/method&gt;
+ &lt;/resource_type&gt;
+
+ &lt;resources base="http://localhost:8080/"&gt;
+   &lt;resource path="/bookstore/{id}" type="#bookResource"/&gt;
+   &lt;resource path="/books"&gt;
+      &lt;resource path="/bookstore/{id}" type="#bookResource"/&gt;
 
    &lt;!-- 
      or 
-     <span class="code-tag">&lt;resource path=<span class="code-quote">"/books/bookstore/{id}"</span> type=<span class="code-quote">"#bookResource"</span>/&gt;</span>
+     &lt;resource path="/books/bookstore/{id}" type="#bookResource"/&gt;
    --&gt; 
-   <span class="code-tag">&lt;/resource&gt;</span> 
- <span class="code-tag">&lt;/resources&gt;</span>  
-<span class="code-tag">&lt;/application&gt;</span>
-</pre>
+   &lt;/resource&gt; 
+ &lt;/resources&gt;  
+&lt;/application&gt;
+]]></script>
 </div></div> 
 
 <p>Note that a book.xsd schema resource located in the 'schemas' path relative to the location of this WADL document is referenced using wadl:include element. Abstract resource type "bookResource" is declared as an immediate child of wadl:application and is linked to concrete resource elements using a "#bookResource" reference.</p>
@@ -238,38 +246,38 @@ RESTful Web applications. Please check t
 <p>For example, the following baseApplication.wadl documents describes an abstract "bookResource" resource:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;application xmlns=<span class="code-quote">"http://wadl.dev.java.net/2009/02"</span> <span class="code-keyword">xmlns:ns</span>=<span class="code-quote">"http://superbooks"</span>&gt;</span>
- <span class="code-tag">&lt;grammars&gt;</span>
-   <span class="code-tag">&lt;include href=<span class="code-quote">"schemas/book.xsd"</span>/&gt;</span>
- <span class="code-tag">&lt;/grammars&gt;</span>
-
- <span class="code-tag">&lt;resource_type id=<span class="code-quote">"bookResource"</span>&gt;</span>
-     <span class="code-tag">&lt;param name=<span class="code-quote">"id"</span> style=<span class="code-quote">"template"</span>/&gt;</span>
-     <span class="code-tag">&lt;method name=<span class="code-quote">"GET"</span>&gt;</span>
-       <span class="code-tag">&lt;response&gt;</span>
-        <span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"ns:thebook"</span>/&gt;</span>
-       <span class="code-tag">&lt;/response&gt;</span>
-    <span class="code-tag">&lt;/method&gt;</span>
- <span class="code-tag">&lt;/resource_type&gt;</span>
-<span class="code-tag">&lt;/application&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;application xmlns="http://wadl.dev.java.net/2009/02" xmlns:ns="http://superbooks"&gt;
+ &lt;grammars&gt;
+   &lt;include href="schemas/book.xsd"/&gt;
+ &lt;/grammars&gt;
+
+ &lt;resource_type id="bookResource"&gt;
+     &lt;param name="id" style="template"/&gt;
+     &lt;method name="GET"&gt;
+       &lt;response&gt;
+        &lt;representation mediaType="application/xml" element="ns:thebook"/&gt;
+       &lt;/response&gt;
+    &lt;/method&gt;
+ &lt;/resource_type&gt;
+&lt;/application&gt;
+]]></script>
 </div></div> 
 
 <p>and this WADL document links to the abstract resource by using an external WADL reference with a "baseResource" fragment.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;application xmlns=<span class="code-quote">"http://wadl.dev.java.net/2009/02"</span> <span class="code-keyword">xmlns:ns</span>=<span class="code-quote">"http://superbooks"</span>&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;application xmlns="http://wadl.dev.java.net/2009/02" xmlns:ns="http://superbooks"&gt;
  
- <span class="code-tag">&lt;resources base=<span class="code-quote">"http://localhost:8080/"</span>&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span> type=<span class="code-quote">"baseApplication.wadl#bookResource"</span>/&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/books"</span>&gt;</span>
-      <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span> type=<span class="code-quote">"baseApplication.wadl#bookResource"</span>/&gt;</span>
-   <span class="code-tag">&lt;/resource&gt;</span> 
- <span class="code-tag">&lt;/resources&gt;</span>  
-<span class="code-tag">&lt;/application&gt;</span>
-</pre>
+ &lt;resources base="http://localhost:8080/"&gt;
+   &lt;resource path="/bookstore/{id}" type="baseApplication.wadl#bookResource"/&gt;
+   &lt;resource path="/books"&gt;
+      &lt;resource path="/bookstore/{id}" type="baseApplication.wadl#bookResource"/&gt;
+   &lt;/resource&gt; 
+ &lt;/resources&gt;  
+&lt;/application&gt;
+]]></script>
 </div></div> 
 
 
@@ -285,23 +293,23 @@ RESTful Web applications. Please check t
 <p>Code generator expects WADL resource and method elements to have "id" attributes set which can provide hints on how to name generated classes and methods. For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;application xmlns=<span class="code-quote">"http://wadl.dev.java.net/2009/02"</span> <span class="code-keyword">xmlns:ns</span>=<span class="code-quote">"http://superbooks"</span>&gt;</span>
- <span class="code-tag">&lt;grammars&gt;</span>
-  <span class="code-tag">&lt;include href=<span class="code-quote">"schemas/book.xsd"</span>/&gt;</span>
- <span class="code-tag">&lt;/grammars&gt;</span>
- <span class="code-tag">&lt;resources base=<span class="code-quote">"http://localhost:8080/"</span>&gt;</span>
-   <span class="code-tag">&lt;resource path=<span class="code-quote">"/bookstore/{id}"</span> id=<span class="code-quote">"org.apache.cxf.jaxrs.systest.BookStore"</span>&gt;</span>
-     <span class="code-tag">&lt;param name=<span class="code-quote">"id"</span> style=<span class="code-quote">"template"</span>/&gt;</span>
-     <span class="code-tag">&lt;method name=<span class="code-quote">"GET"</span> id=<span class="code-quote">"getBook"</span>&gt;</span>
-      <span class="code-tag">&lt;response&gt;</span>
-       <span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"ns:thebook"</span>/&gt;</span>
-      <span class="code-tag">&lt;/response&gt;</span>
-    <span class="code-tag">&lt;/method&gt;</span>
-   <span class="code-tag">&lt;/resource&gt;</span>
- <span class="code-tag">&lt;/resources&gt;</span>  
-<span class="code-tag">&lt;/application&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;application xmlns="http://wadl.dev.java.net/2009/02" xmlns:ns="http://superbooks"&gt;
+ &lt;grammars&gt;
+  &lt;include href="schemas/book.xsd"/&gt;
+ &lt;/grammars&gt;
+ &lt;resources base="http://localhost:8080/"&gt;
+   &lt;resource path="/bookstore/{id}" id="org.apache.cxf.jaxrs.systest.BookStore"&gt;
+     &lt;param name="id" style="template"/&gt;
+     &lt;method name="GET" id="getBook"&gt;
+      &lt;response&gt;
+       &lt;representation mediaType="application/xml" element="ns:thebook"/&gt;
+      &lt;/response&gt;
+    &lt;/method&gt;
+   &lt;/resource&gt;
+ &lt;/resources&gt;  
+&lt;/application&gt;
+]]></script>
 </div></div>
 
 <p>Note that resource id is "org.apache.cxf.jaxrs.systest.BookStore". Alternatively, expanded QName can be used as "id":<br clear="none">
@@ -352,15 +360,15 @@ Alternatively, in combination with a '-n
 
 <p>At the moment it is possible to apply external JAXB customizations to WADL grammars however it is not possible yet to restrict a given customization to a specific WADL document or explicitly inlined schema. Linking binding to external schemas works, for example, the following bindings file can be used:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-&lt;jaxb:bindings version=<span class="code-quote">"2.0"</span>
-	<span class="code-keyword">xmlns:jaxb</span>=<span class="code-quote">"http://java.sun.com/xml/ns/jaxb"</span>
-	<span class="code-keyword">xmlns:xs</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema"</span>
-	schemaLocation=<span class="code-quote">"schemas/book.xsd"</span>
-	node=<span class="code-quote">"//xs:complexType[@name='book2']/xs:sequence/xs:element[@name='id']"</span>&gt;
-	<span class="code-tag">&lt;jaxb:property name=<span class="code-quote">"book2Id"</span>/&gt;</span>
-<span class="code-tag">&lt;/jaxb:bindings&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jaxb:bindings version="2.0"
+	xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	schemaLocation="schemas/book.xsd"
+	node="//xs:complexType[@name='book2']/xs:sequence/xs:element[@name='id']"&gt;
+	&lt;jaxb:property name="book2Id"/&gt;
+&lt;/jaxb:bindings&gt;
+]]></script>
 </div></div> 
 
 <h2><a shape="rect" name="JAXRSServicesDescription-wadl2javaMavenplugin"></a>wadl2java Maven plugin</h2>
@@ -368,51 +376,51 @@ Alternatively, in combination with a '-n
 <p>If you need the code generated during Maven build then the following plugin can be used:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span class="code-tag">&lt;/groupId&gt;</span>
-<span class="code-tag">&lt;artifactId&gt;</span>cxf-wadl2java-plugin<span class="code-tag">&lt;/artifactId&gt;</span>
-<span class="code-tag">&lt;version&gt;</span>2.4.1<span class="code-tag">&lt;/version&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+&lt;artifactId&gt;cxf-wadl2java-plugin&lt;/artifactId&gt;
+&lt;version&gt;2.4.1&lt;/version&gt;
+]]></script>
 </div></div>
 
 <p>Add this plugin to the build section of your project's pom and specify a 'wadl2java' goal, for example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;build&gt;</span>
-        <span class="code-tag">&lt;plugins&gt;</span>
-            <span class="code-tag">&lt;plugin&gt;</span>
-                <span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span class="code-tag">&lt;/groupId&gt;</span>
-                <span class="code-tag">&lt;artifactId&gt;</span>cxf-wadl2java-plugin<span class="code-tag">&lt;/artifactId&gt;</span>
-                <span class="code-tag">&lt;version&gt;</span>2.4.1<span class="code-tag">&lt;/version&gt;</span>
-                <span class="code-tag">&lt;executions&gt;</span>
-                    <span class="code-tag">&lt;execution&gt;</span>
-                        <span class="code-tag">&lt;id&gt;</span>generate-sources<span class="code-tag">&lt;/id&gt;</span>
-                        <span class="code-tag">&lt;phase&gt;</span>generate-sources<span class="code-tag">&lt;/phase&gt;</span>
-                        <span class="code-tag">&lt;configuration&gt;</span>
-                            <span class="code-tag">&lt;sourceRoot&gt;</span>${basedir}/target/generated/src/main/java<span class="code-tag">&lt;/sourceRoot&gt;</span>
-                            <span class="code-tag">&lt;wadlOptions&gt;</span>
-                                <span class="code-tag">&lt;wadlOption&gt;</span>
-                                    <span class="code-tag">&lt;wadl&gt;</span>${basedir}/src/test/resources/wadl/bookstoreImport.xml<span class="code-tag">&lt;/wadl&gt;</span>
-                                    <span class="code-tag">&lt;impl&gt;</span>true<span class="code-tag">&lt;/impl&gt;</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;build&gt;
+        &lt;plugins&gt;
+            &lt;plugin&gt;
+                &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+                &lt;artifactId&gt;cxf-wadl2java-plugin&lt;/artifactId&gt;
+                &lt;version&gt;2.4.1&lt;/version&gt;
+                &lt;executions&gt;
+                    &lt;execution&gt;
+                        &lt;id&gt;generate-sources&lt;/id&gt;
+                        &lt;phase&gt;generate-sources&lt;/phase&gt;
+                        &lt;configuration&gt;
+                            &lt;sourceRoot&gt;${basedir}/target/generated/src/main/java&lt;/sourceRoot&gt;
+                            &lt;wadlOptions&gt;
+                                &lt;wadlOption&gt;
+                                    &lt;wadl&gt;${basedir}/src/test/resources/wadl/bookstoreImport.xml&lt;/wadl&gt;
+                                    &lt;impl&gt;true&lt;/impl&gt;
                                     
-                                    <span class="code-tag">&lt;packagename&gt;</span>org.apache.cxf.systest.jaxrs.codegen.service<span class="code-tag">&lt;/packagename&gt;</span>
-                                    <span class="code-tag">&lt;schemaPackagenames&gt;</span>
-                                       <span class="code-tag">&lt;schemaPackagename&gt;</span>http://superbooks=org.apache.cxf.systest.jaxrs.codegen.schema<span class="code-tag">&lt;/schemaPackagename&gt;</span>
-                                    <span class="code-tag">&lt;/schemaPackagenames&gt;</span>
+                                    &lt;packagename&gt;org.apache.cxf.systest.jaxrs.codegen.service&lt;/packagename&gt;
+                                    &lt;schemaPackagenames&gt;
+                                       &lt;schemaPackagename&gt;http://superbooks=org.apache.cxf.systest.jaxrs.codegen.schema&lt;/schemaPackagename&gt;
+                                    &lt;/schemaPackagenames&gt;
                                     
-                                <span class="code-tag">&lt;/wadlOption&gt;</span>
-                            <span class="code-tag">&lt;/wadlOptions&gt;</span>
-                        <span class="code-tag">&lt;/configuration&gt;</span>
-                        <span class="code-tag">&lt;goals&gt;</span>
-                            <span class="code-tag">&lt;goal&gt;</span>wadl2java<span class="code-tag">&lt;/goal&gt;</span>
-                        <span class="code-tag">&lt;/goals&gt;</span>
-                    <span class="code-tag">&lt;/execution&gt;</span>
-                <span class="code-tag">&lt;/executions&gt;</span>
-            <span class="code-tag">&lt;/plugin&gt;</span>
-        <span class="code-tag">&lt;/plugins&gt;</span>
-    <span class="code-tag">&lt;/build&gt;</span>
-</pre>
+                                &lt;/wadlOption&gt;
+                            &lt;/wadlOptions&gt;
+                        &lt;/configuration&gt;
+                        &lt;goals&gt;
+                            &lt;goal&gt;wadl2java&lt;/goal&gt;
+                        &lt;/goals&gt;
+                    &lt;/execution&gt;
+                &lt;/executions&gt;
+            &lt;/plugin&gt;
+        &lt;/plugins&gt;
+    &lt;/build&gt;
+]]></script>
 </div></div>
 
 <p>Note that the minimum and maximum memory limits may need to be increased when using the plugin to process large WADL documents, for example, add "-Xms512M -Xmx1024M" to the list of Maven options.</p>
@@ -420,17 +428,17 @@ Alternatively, in combination with a '-n
 <p>CXF will generate artifacts in the &lt;sourceRoot&gt; directory. Configuration arguments which are included inside the &lt;wadlOption&gt; element are used to pass arguments to the tooling and correspond to the options outlined in the wadltojava section, they can be specified explicitly, as above, or using an "extraargs" wrapper, for example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;wadlOptions&gt;</span>
-	<span class="code-tag">&lt;wadlOption&gt;</span>
-		<span class="code-tag">&lt;wadl&gt;</span>$\{basedir}/src/main/wadl/bookStore.wadl<span class="code-tag">&lt;/wsdl&gt;</span>
-                <span class="code-tag">&lt;extraargs&gt;</span>
-                    <span class="code-tag">&lt;extraarg&gt;</span>-impl<span class="code-tag">&lt;/extraarg&gt;</span>
-                    <span class="code-tag">&lt;extraarg&gt;</span>-verbose<span class="code-tag">&lt;/extraarg&gt;</span>
-                <span class="code-tag">&lt;/extraargs&gt;</span>
-	<span class="code-tag">&lt;/wadlOption&gt;</span>
-<span class="code-tag">&lt;/wadlOptions&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;wadlOptions&gt;
+	&lt;wadlOption&gt;
+		&lt;wadl&gt;$\{basedir}/src/main/wadl/bookStore.wadl&lt;/wsdl&gt;
+                &lt;extraargs&gt;
+                    &lt;extraarg&gt;-impl&lt;/extraarg&gt;
+                    &lt;extraarg&gt;-verbose&lt;/extraarg&gt;
+                &lt;/extraargs&gt;
+	&lt;/wadlOption&gt;
+&lt;/wadlOptions&gt;
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="JAXRSServicesDescription-Integration"></a>Integration</h2>
@@ -441,11 +449,11 @@ First option is to pass the collected op
 <p>Another approach is to use org.apache.cxf.tools.wadlto.jaxrs.JAXRSContainer class shipped with the cxf-tools-wadlto-jaxrs module:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span class="code-tag">&lt;/groupId&gt;</span>
-<span class="code-tag">&lt;artifactId&gt;</span>cxf-tools-wadlto-jaxrs<span class="code-tag">&lt;/artifactId&gt;</span>
-<span class="code-tag">&lt;version&gt;</span>2.4.1<span class="code-tag">&lt;/version&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
+&lt;artifactId&gt;cxf-tools-wadlto-jaxrs&lt;/artifactId&gt;
+&lt;version&gt;2.4.1&lt;/version&gt;
+]]></script>
 </div></div>
 
 <p>Please see CXF source for more details and org.apache.cxf.tools.wadlto.jaxrs.JAXRSContainerTest in particular. </p>
@@ -454,13 +462,13 @@ First option is to pass the collected op
 
 <p>External WADL documents can be linked to from jaxrs:server endpoints using newly introduced "docLocation" attribute, for example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;jaxrs:server address=<span class="code-quote">"/rest"</span> docLocation=<span class="code-quote">"wadl/bookStore.wadl"</span>&gt;</span>
-   <span class="code-tag">&lt;jaxrs:serviceBeans&gt;</span>
-      <span class="code-tag">&lt;bean class=<span class="code-quote">"org.bar.generated.BookStore"</span>/&gt;</span> 
-   <span class="code-tag">&lt;/jaxrs:serviceBeans&gt;</span>
-<span class="code-tag">&lt;/jaxrs:server&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jaxrs:server address="/rest" docLocation="wadl/bookStore.wadl"&gt;
+   &lt;jaxrs:serviceBeans&gt;
+      &lt;bean class="org.bar.generated.BookStore"/&gt; 
+   &lt;/jaxrs:serviceBeans&gt;
+&lt;/jaxrs:server&gt;
+]]></script>
 </div></div>
 
 <p>If external WADL documents include external schemas and jaxrs endpoints need to have the schema validation enabled, then those schemas can be referenced in the jaxrs:schemaLocations section as well.</p>
@@ -481,33 +489,33 @@ Note that JAX-RS subresources are late-r
 <p>Note that starting from CXF 2.4.0, Description annotations can be applied to input parameters. Additionally, a method-level <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/Descriptions.java">Descriptions</a> annotation can have a collection of categorized Description annotations, with each Description targeting a specific WADL element by setting its 'target' property to one of the <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/DocTarget.java">DocTarget</a> values. For example, one can use a Descriptions annotation to document the response representation of a particular resource method, as well as add documentation fragments to WADL wadl:method/wadl:request and wadl:method/wadl:response elements:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 @POST
-@Path(<span class="code-quote">"books/{bookid}"</span>)
+@Path("books/{bookid}")
 @Descriptions({ 
-   @Description(value = <span class="code-quote">"Adds a <span class="code-keyword">new</span> book"</span>, target = DocTarget.METHOD),
-   @Description(value = <span class="code-quote">"Requested Book"</span>, target = DocTarget.RETURN),
-   @Description(value = <span class="code-quote">"Request"</span>, target = DocTarget.REQUEST),
-   @Description(value = <span class="code-quote">"Response"</span>, target = DocTarget.RESPONSE),
-   @Description(value = <span class="code-quote">"Resource"</span>, target = DocTarget.RESOURCE)
+   @Description(value = "Adds a new book", target = DocTarget.METHOD),
+   @Description(value = "Requested Book", target = DocTarget.RETURN),
+   @Description(value = "Request", target = DocTarget.REQUEST),
+   @Description(value = "Response", target = DocTarget.RESPONSE),
+   @Description(value = "Resource", target = DocTarget.RESOURCE)
 })
-<span class="code-keyword">public</span> Book addBook(@Description(<span class="code-quote">"book id"</span>) @PathParam(<span class="code-quote">"id"</span>) <span class="code-object">Long</span> id, @Description(<span class="code-quote">"New Book"</span>) Book book) {...}
-</pre>
+public Book addBook(@Description("book id") @PathParam("id") Long id, @Description("New Book") Book book) {...}
+]]></script>
 </div></div>
 
 <p>Every unique @Path value adds a new 'resource' element to the generated WADL, thus the last Description annotation in the @Descriptions array ensures the doc extension is also added to the 'resource' element. Note that multiple resource methods having different HTTP methods but sharing the same @Path value will have the same parent 'resource' element representing this shared path fragment, in this case a Description with the DocTarget.RESOURCE target will be ignored unless it is added to the first resource method with this shared @Path:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 @POST
-@Path(<span class="code-quote">"books/{bookid}"</span>)
-@Description(value = <span class="code-quote">"Resource"</span>, target = DocTarget.RESOURCE),
-<span class="code-keyword">public</span> Book addBook(@Description(<span class="code-quote">"book id"</span>) @PathParam(<span class="code-quote">"id"</span>) <span class="code-object">Long</span> id, @Description(<span class="code-quote">"New Book"</span>) Book book) {...}
+@Path("books/{bookid}")
+@Description(value = "Resource", target = DocTarget.RESOURCE),
+public Book addBook(@Description("book id") @PathParam("id") Long id, @Description("New Book") Book book) {...}
 
 @GET
-@Path(<span class="code-quote">"books/{bookid}"</span>)
-<span class="code-keyword">public</span> Book addBook(@Description(<span class="code-quote">"book id"</span>) @PathParam(<span class="code-quote">"id"</span>) <span class="code-object">Long</span> id) {...}
-</pre>
+@Path("books/{bookid}")
+public Book addBook(@Description("book id") @PathParam("id") Long id) {...}
+]]></script>
 </div></div>
 
 
@@ -531,13 +539,13 @@ org.apache.cxf.jaxrs.model.wadl.WadlGene
 <p>Starting from CXF 2.5.5 and 2.6.2 it is possible to get explicit collections represented in generated WADL grammar sections and have WADL representations linking to these schema elements. Note it is only possible for JAXB collections, for example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
 @GET
-@Path(<span class="code-quote">"books"</span>)
-@org.apache.cxf.jaxrs.model.wadl.XMLName(<span class="code-quote">"{http:<span class="code-comment">//books}books"</span>)
-</span><span class="code-keyword">public</span> List&lt;Book&gt; getBooks() {...}
-</pre>
+@Path("books")
+@org.apache.cxf.jaxrs.model.wadl.XMLName("{http://books}books")
+public List&lt;Book&gt; getBooks() {...}
+]]></script>
 </div></div>
 
 <p>Given the above example, WADLGenerator will attempt to add a 'books' element to the generated schema with the targetNamespace set to "http://books". This 'books' element will have a sequence of elements linking to a type representing the "Book" class.</p>
@@ -548,10 +556,10 @@ org.apache.cxf.jaxrs.model.wadl.WadlGene
 
 <p>Even when you do use JAXB, the JAXB types may have been generated from the external schema so having WadlGenerator attempting to recreate the original schema may not work well. To have a generated WADL referencing the original schema(s) please set a 'schemaLocations' list property (programmatically or from Spring) :</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-WadlGenerator wg = <span class="code-keyword">new</span> WadlGenerator();
-wg.setSchemaLocations(Collections.singletonList(<span class="code-quote">"classpath:/book.xsd"</span>));
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+WadlGenerator wg = new WadlGenerator();
+wg.setSchemaLocations(Collections.singletonList("classpath:/book.xsd"));
+]]></script>
 </div></div> 
 
 <p>In this case the grammar section will have the 'book.xsd' schema inlined. If this schema imports other schemas then the imports with relative URIs will be replaced by the absolute URIs based on the current endpoint's base address. For example, if the endpoint address is "http://somehost/bar" and the 'book.xsd' imports "foo/book1.xsd" then the published WADL will contain an "http://somehost/bar/foo/book1.xsd". At the moment a custom RequestHandler filter will have to be registered to serve resources such as "http://somehost/bar/foo/book1.xsd" which can 'calculate' which resource is required get the absolute request URI and comparing it with the base URI, possibly with the help of the injected JAXRS UriInfo context. Alternatively, resources such as book1.xsd may be served by CXFServlet itself (see the Redirection with CXFServlet)  </p>
@@ -560,24 +568,24 @@ wg.setSchemaLocations(Collections.single
 
 <p>Note that the root schema such as "book.xsd" is inlined - you can have it referenced only by setting an 'externalLinks' list property. This will work very well when the "book.xsd" is indeed available at the external URI, but this property can also be used to avoid the local schemas being inlined. Moreover, the use of JAXB will not be required. The result will look like this:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag">&lt;wadl:grammars&gt;</span>
-<span class="code-tag">&lt;wadl:include href=<span class="code-quote">"http://books.xsd"</span>/&gt;</span>
-<span class="code-tag">&lt;/wadl:grammars&gt;</span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;wadl:grammars&gt;
+&lt;wadl:include href="http://books.xsd"/&gt;
+&lt;/wadl:grammars&gt;
+]]></script>
 </div></div> 
 
 <p>Note that "schemaLocations" and "externalLinks" properties differ in that the schemas referenced by the former one are inlined.</p>
 
 <p>You can also customize the way schema elements are referenced. When WadlGenerator creates WADL representation elements (representing resource method input or output types) it will be able to link to schema elements provided a given type is actually a JAXB one, so the result may look like this :</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;!-- 
   thebook2 element is declared in a schema inlined in or referenced from the grammar section
   prefix1 is bound to that schema's target namespace and is declared at the wadl:application element 
 --&gt;
-<span class="code-tag">&lt;representation mediaType=<span class="code-quote">"application/xml"</span> element=<span class="code-quote">"prefix1:thebook2"</span>/&gt;</span>
-</pre>
+&lt;representation mediaType="application/xml" element="prefix1:thebook2"/&gt;
+]]></script>
 </div></div>
 
 <p>If no JAXB is used then you can attach an <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/XMLName.java">XMLName</a> annotation to method input or output types. Alternatively, you can register an instance of <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/ElementQNameResolver.java">ElementQNameResolver</a> with the WadlGenerator which will be used for creating wadl:representation/@element values.</p>
@@ -594,12 +602,12 @@ WADLGenerator can be indirectly configur
 <p>For example, given</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 Base address : 'http://localhost:8080'
 WAR name : 'store'
 CXFServlet : '/books/*'
 jaxrs:server/@address = '/orders'
-</pre>
+]]></script>
 </div></div>
 
 <p>and visiting</p>
@@ -624,14 +632,14 @@ with a given jaxrs:server endpoint. </p>
 <p>For example, if the following 2 root resource classes has been registered with this endpoint:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-@Path(<span class="code-quote">"/fiction"</span>) 
-<span class="code-keyword">public</span> class FictionBookOrders {
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+@Path("/fiction") 
+public class FictionBookOrders {
 }
-@Path(<span class="code-quote">"/sport"</span>) 
-<span class="code-keyword">public</span> class SportBookOrders {
+@Path("/sport") 
+public class SportBookOrders {
 }
-</pre>
+]]></script>
 </div></div>
 
 <p>then WADL will contain the description of both FictionBookOrders and SportBookOrders resources.</p>

Modified: websites/production/cxf/content/docs/jaxrs-testing.html
==============================================================================
--- websites/production/cxf/content/docs/jaxrs-testing.html (original)
+++ websites/production/cxf/content/docs/jaxrs-testing.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,17 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - JAXRS Testing">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- JAXRS Testing
     </title>
@@ -42,19 +53,15 @@ Apache CXF -- JAXRS Testing
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +101,7 @@ Apache CXF -- JAXRS Testing
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -132,88 +139,88 @@ Apache CXF -- JAXRS Testing
 <h1><a shape="rect" name="JAXRSTesting-EmbeddedJetty"></a>Embedded Jetty</h1>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.ws.rs.core.Response;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+import javax.ws.rs.core.Response;
 
-<span class="code-keyword">import</span> org.apache.cxf.endpoint.Server;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.client.WebClient;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
-
-<span class="code-keyword">import</span> org.junit.Test;
-<span class="code-keyword">import</span> org.junit.Assert;
-<span class="code-keyword">import</span> org.junit.BeforeClass;
-<span class="code-keyword">import</span> org.junit.AfterClass;
-
-<span class="code-keyword">import</span> custom.MyJaxrsResource;
-<span class="code-keyword">import</span> custom.Book;
-
-<span class="code-keyword">public</span> class JAXRSTest <span class="code-keyword">extends</span> Assert {
-
-<span class="code-keyword">private</span> <span class="code-keyword">final</span> <span class="code-keyword">static</span> <span class="code-object">String</span> ENDPOINT_ADDRESS = <span class="code-quote">"http:<span class="code-comment">//localhost:8080/<span class="code-keyword">rest</span>"</span>;
-</span><span class="code-keyword">private</span> <span class="code-keyword">final</span> <span class="code-keyword">static</span> <span class="code-object">String</span> WADL_ADDRESS = ENDPOINT_ADDRESS + <span class="code-quote">"?_wadl"</span>;
-<span class="code-keyword">private</span> <span class="code-keyword">static</span> Server server;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
+import org.apache.cxf.jaxrs.client.WebClient;
+import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
+
+import org.junit.Test;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.AfterClass;
+
+import custom.MyJaxrsResource;
+import custom.Book;
+
+public class JAXRSTest extends Assert {
+
+private final static String ENDPOINT_ADDRESS = "http://localhost:8080/rest";
+private final static String WADL_ADDRESS = ENDPOINT_ADDRESS + "?_wadl";
+private static Server server;
 
 @BeforeClass
-<span class="code-keyword">public</span> <span class="code-keyword">static</span> void initialize() <span class="code-keyword">throws</span> Exception {
+public static void initialize() throws Exception {
      startServer();
      waitForWADL();
 }
 
-<span class="code-keyword">private</span> <span class="code-keyword">static</span> void startServer() <span class="code-keyword">throws</span> Exception {
-     JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
+private static void startServer() throws Exception {
+     JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
      sf.setResourceClasses(MyJaxrsResource.class);
         
-     List&lt;<span class="code-object">Object</span>&gt; providers = <span class="code-keyword">new</span> ArrayList&lt;<span class="code-object">Object</span>&gt;();
-     <span class="code-comment">// add custom providers <span class="code-keyword">if</span> any
-</span>     sf.setProviders(providers);
+     List&lt;Object&gt; providers = new ArrayList&lt;Object&gt;();
+     // add custom providers if any
+     sf.setProviders(providers);
         
      sf.setResourceProvider(MyJaxrsResource.class.class,
-                            <span class="code-keyword">new</span> SingletonResourceProvider(<span class="code-keyword">new</span> MyJaxrsResource(), <span class="code-keyword">true</span>));
+                            new SingletonResourceProvider(new MyJaxrsResource(), true));
      sf.setAddress(ENDPOINT_ADDRESS);
 
      server = sf.create();
 }
 
-<span class="code-comment">// Optional step - may be needed to ensure that by the time individual
-</span><span class="code-comment">// tests start running the endpoint has been fully initialized
-</span><span class="code-keyword">private</span> <span class="code-keyword">static</span> void waitForWADL() <span class="code-keyword">throws</span> Exception {
+// Optional step - may be needed to ensure that by the time individual
+// tests start running the endpoint has been fully initialized
+private static void waitForWADL() throws Exception {
     WebClient client = WebClient.create(WADL_ADDRESS);
-    <span class="code-comment">// wait <span class="code-keyword">for</span> 20 secs or so
-</span>    <span class="code-keyword">for</span> (<span class="code-object">int</span> i = 0; i &lt; 20; i++) {
-        <span class="code-object">Thread</span>.currentThread().sleep(1000);
+    // wait for 20 secs or so
+    for (int i = 0; i &lt; 20; i++) {
+        Thread.currentThread().sleep(1000);
         Response response = client.get();
-        <span class="code-keyword">if</span> (response.getStatus() == 200) {
-            <span class="code-keyword">break</span>;
+        if (response.getStatus() == 200) {
+            break;
         }
     }
-    <span class="code-comment">// no WADL is available yet - <span class="code-keyword">throw</span> an exception or give tests a chance to run anyway
-</span>}
+    // no WADL is available yet - throw an exception or give tests a chance to run anyway
+}
 
 
 @AfterClass
-<span class="code-keyword">public</span> <span class="code-keyword">static</span> void destroy() <span class="code-keyword">throws</span> Exception {
+public static void destroy() throws Exception {
    server.stop();
    server.destroy();
 }
 
 @Test
-<span class="code-keyword">public</span> void testGetBookWithWebClient() {
+public void testGetBookWithWebClient() {
  WebClient client = WebClient.create(ENDPOINT_ADDRESS);
- client.accept(<span class="code-quote">"text/xml"</span>);
- client.path(<span class="code-quote">"somepath"</span>); 
+ client.accept("text/xml");
+ client.path("somepath"); 
  Book book = client.get(Book.class);
  assertEquals(123L, book.getId());
 }
 
 @Test
-<span class="code-keyword">public</span> void testGetBookWithProxy() {
+public void testGetBookWithProxy() {
   MyJaxrsResource client = JAXRSClientFactory.create(ENDPOINT_ADDRESS, MyJaxrsResource.class);
   Book book = client.getBook();
   assertEquals(123L, book.getId());
 }
 }
-</pre>
+]]></script>
 </div></div>
 
 <p>It is quite easy to setup a server and start testing it. The advantage of using the embedded Jetty is that a complete end-to-end round-trip can be exercised, thus stressing all the CXF runtime which comes at the cost of some added complexity to do with setting up the server.</p>
@@ -225,72 +232,72 @@ This avoids the need to start an embedde
 
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 
-<span class="code-keyword">import</span> org.apache.cxf.endpoint.Server;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.client.WebClient;
-<span class="code-keyword">import</span> org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
+import org.apache.cxf.jaxrs.client.WebClient;
+import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
 
-<span class="code-keyword">import</span> org.apache.cxf.transport.local.LocalConduit;
-<span class="code-keyword">import</span> org.apache.cxf.transport.local.LocalTransportFactory;
+import org.apache.cxf.transport.local.LocalConduit;
+import org.apache.cxf.transport.local.LocalTransportFactory;
 
-<span class="code-keyword">import</span> org.junit.Test;
-<span class="code-keyword">import</span> org.junit.Assert;
-<span class="code-keyword">import</span> org.junit.BeforeClass;
-<span class="code-keyword">import</span> org.junit.AfterClass;
+import org.junit.Test;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.AfterClass;
 
-<span class="code-keyword">import</span> custom.MyJaxrsResource;
-<span class="code-keyword">import</span> custom.Book;
+import custom.MyJaxrsResource;
+import custom.Book;
 
-<span class="code-keyword">public</span> class JAXRSTest <span class="code-keyword">extends</span> Assert {
+public class JAXRSTest extends Assert {
 
-<span class="code-keyword">private</span> <span class="code-keyword">final</span> <span class="code-keyword">static</span> <span class="code-object">String</span> ENDPOINT_ADDRESS = <span class="code-quote">"local:<span class="code-comment">//books"</span>;
-</span><span class="code-keyword">private</span> <span class="code-keyword">static</span> Server server;
+private final static String ENDPOINT_ADDRESS = "local://books";
+private static Server server;
 
 @BeforeClass
-<span class="code-keyword">public</span> <span class="code-keyword">static</span> void initialize() <span class="code-keyword">throws</span> Exception {
+public static void initialize() throws Exception {
      startServer();
 }
 
-<span class="code-keyword">private</span> <span class="code-keyword">static</span> void startServer() <span class="code-keyword">throws</span> Exception {
-     JAXRSServerFactoryBean sf = <span class="code-keyword">new</span> JAXRSServerFactoryBean();
+private static void startServer() throws Exception {
+     JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
      sf.setTransportId(LocalTransportFactory.TRANSPORT_ID);
      sf.setResourceClasses(MyJaxrsResource.class);
         
-     List&lt;<span class="code-object">Object</span>&gt; providers = <span class="code-keyword">new</span> ArrayList&lt;<span class="code-object">Object</span>&gt;();
-     <span class="code-comment">// add custom providers <span class="code-keyword">if</span> any
-</span>     sf.setProviders(providers);
+     List&lt;Object&gt; providers = new ArrayList&lt;Object&gt;();
+     // add custom providers if any
+     sf.setProviders(providers);
         
      sf.setResourceProvider(MyJaxrsResource.class.class,
-                            <span class="code-keyword">new</span> SingletonResourceProvider(<span class="code-keyword">new</span> MyJaxrsResource(), <span class="code-keyword">true</span>));
+                            new SingletonResourceProvider(new MyJaxrsResource(), true));
      sf.setAddress(ENDPOINT_ADDRESS);
 
      server = sf.create();
 }
 
 @AfterClass
-<span class="code-keyword">public</span> <span class="code-keyword">static</span> void destroy() <span class="code-keyword">throws</span> Exception {
+public static void destroy() throws Exception {
    server.stop();
    server.destroy();
 }
 
 @Test
-<span class="code-keyword">public</span> void testGetBookWithWebClientDirectDispatch() {
+public void testGetBookWithWebClientDirectDispatch() {
  WebClient client = WebClient.create(ENDPOINT_ADDRESS);
- WebClient.getConfig(client).getRequestContext().put(LocalConduit.DIRECT_DISPATCH, <span class="code-object">Boolean</span>.TRUE);
+ WebClient.getConfig(client).getRequestContext().put(LocalConduit.DIRECT_DISPATCH, Boolean.TRUE);
  
- client.accept(<span class="code-quote">"text/xml"</span>);
- client.path(<span class="code-quote">"somepath"</span>); 
+ client.accept("text/xml");
+ client.path("somepath"); 
  Book book = client.get(Book.class);
  assertEquals(123L, book.getId());
 }
 
 @Test
-<span class="code-keyword">public</span> void testGetBookViaPipe() {
+public void testGetBookViaPipe() {
  WebClient client = WebClient.create(ENDPOINT_ADDRESS);
- client.accept(<span class="code-quote">"text/xml"</span>);
- client.path(<span class="code-quote">"somepath"</span>); 
+ client.accept("text/xml");
+ client.path("somepath"); 
  Book book = client.get(Book.class);
  assertEquals(123L, book.getId());
 }
@@ -298,14 +305,14 @@ This avoids the need to start an embedde
 
 
 @Test
-<span class="code-keyword">public</span> void testAddBookWithProxyDirectDispatch() {
+public void testAddBookWithProxyDirectDispatch() {
   MyJaxrsResource client = JAXRSClientFactory.create(ENDPOINT_ADDRESS, MyJaxrsResource.class);
-  WebClient.getConfig(client).getRequestContext().put(LocalConduit.DIRECT_DISPATCH, <span class="code-object">Boolean</span>.TRUE);
-  Book book = client.echoBook(<span class="code-keyword">new</span> Book(123));
+  WebClient.getConfig(client).getRequestContext().put(LocalConduit.DIRECT_DISPATCH, Boolean.TRUE);
+  Book book = client.echoBook(new Book(123));
   assertEquals(123L, book.getId());
 }
 }
-</pre>
+]]></script>
 </div></div>
 
 <p>Note that setting a LocalConduit.DIRECT_DISPATCH property to 'true' ensures that the invocation goes immediately into the service chain after the client out chain has completed. This works well for all HTTP verbs including GET, POST, etc.</p>

Modified: websites/production/cxf/content/docs/jetty-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/jetty-configuration.html (original)
+++ websites/production/cxf/content/docs/jetty-configuration.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - Jetty Configuration">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- Jetty Configuration
     </title>
@@ -42,19 +54,15 @@ Apache CXF -- Jetty Configuration
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +102,7 @@ Apache CXF -- Jetty Configuration
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -132,15 +140,15 @@ Apache CXF -- Jetty Configuration
 
 <p>The elements used to configure the Jetty runtime are defined in the namespace <tt><a shape="rect" href="http://cxf.apache.org/transports/http-jetty/configuration">http://cxf.apache.org/transports/http-jetty/configuration</a></tt>. It is commonly referred to using the prefix <tt>httpj</tt>. In order to use the Jetty configuration elements you will need to add the lines shown below to the <tt>beans</tt> element of your endpoint's configuration file. In addition, you will need to add the configuration elements' namespace to the <tt>xsi:schemaLocation</tt> attribute.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;beans ...
-  <span class="code-keyword">xmlns:httpj</span>="http://cxf.apache.org/transports/http-jetty/configuration
+  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration
   ...
   xsi:schemaLocation="...
                       http://cxf.apache.org/transports/http-jetty/configuration
                       http://cxf.apache.org/schemas/configuration/http-jetty.xsd
                       ...&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JettyConfiguration-The%7B%7Benginefactory%7D%7Delement"></a>The <tt>engine-factory</tt> element</h3>
@@ -182,14 +190,14 @@ The <tt>threadingParameters</tt> has two
 
 <p>The example below shows a configuration fragment that configures a Jetty instance on port number 9001.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-  <span class="code-keyword">xmlns:beans</span>=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
-  <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
-  <span class="code-keyword">xmlns:sec</span>=<span class="code-quote">"http://cxf.apache.org/configuration/security"</span>
-  <span class="code-keyword">xmlns:http</span>=<span class="code-quote">"http://cxf.apache.org/transports/http/configuration"</span>
-  <span class="code-keyword">xmlns:httpj</span>=<span class="code-quote">"http://cxf.apache.org/transports/http-jetty/configuration"</span>
-  <span class="code-keyword">xmlns:jaxws</span>=<span class="code-quote">"http://java.sun.com/xml/ns/jaxws"</span>
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:beans="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:sec="http://cxf.apache.org/configuration/security"
+  xmlns:http="http://cxf.apache.org/transports/http/configuration"
+  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
+  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
   xsi:schemaLocation="http://cxf.apache.org/configuration/security
   		      http://cxf.apache.org/schemas/configuration/security.xsd
             http://cxf.apache.org/transports/http/configuration
@@ -200,33 +208,33 @@ The <tt>threadingParameters</tt> has two
             http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&gt;
   ...
 
-  <span class="code-tag">&lt;httpj:engine-factory bus=<span class="code-quote">"cxf"</span>&gt;</span>
-    <span class="code-tag">&lt;httpj:identifiedTLSServerParameters id=<span class="code-quote">"secure"</span>&gt;</span>
-      <span class="code-tag">&lt;httpj:tlsServerParameters&gt;</span>
-        <span class="code-tag">&lt;sec:keyManagers keyPassword=<span class="code-quote">"password"</span>&gt;</span>
-          &lt;sec:keyStore type=<span class="code-quote">"JKS"</span> password=<span class="code-quote">"password"</span>
-                      file=<span class="code-quote">"certs/cherry.jks"</span>/&gt;
-        <span class="code-tag">&lt;/sec:keyManagers&gt;</span>
-      <span class="code-tag">&lt;/httpj:tlsServerParameters&gt;</span>
-    <span class="code-tag">&lt;/httpj:identifiedTLSServerParameters&gt;</span>
-
-    <span class="code-tag">&lt;httpj:engine port=<span class="code-quote">"9001"</span>&gt;</span>
-      <span class="code-tag">&lt;httpj:tlsServerParametersRef id=<span class="code-quote">"secure"</span> /&gt;</span>
-      &lt;httpj:threadingParameters minThreads=<span class="code-quote">"5"</span>
-                                 maxThreads=<span class="code-quote">"15"</span> /&gt;
-      <span class="code-tag">&lt;httpj:connector&gt;</span>
-        <span class="code-tag">&lt;beans:bean class=<span class="code-quote">"org.eclipse.jetty.server.bio.SocketConnector"</span>&gt;</span>
-           <span class="code-tag">&lt;beans:property name = <span class="code-quote">"port"</span> value=<span class="code-quote">"9001"</span> /&gt;</span>
-        <span class="code-tag">&lt;/beans:bean&gt;</span>
-      <span class="code-tag">&lt;/httpj:connector&gt;</span>
-      <span class="code-tag">&lt;httpj:handlers&gt;</span>
-        <span class="code-tag">&lt;beans:bean class=<span class="code-quote">"org.eclipse.jetty.server.handler.DefaultHandler"</span>/&gt;</span>         
-      <span class="code-tag">&lt;/httpj:handlers&gt;</span>
-      <span class="code-tag">&lt;httpj:sessionSupport&gt;</span>true<span class="code-tag">&lt;/httpj:sessionSupport&gt;</span>
-    <span class="code-tag">&lt;/httpj:engine&gt;</span>
-  <span class="code-tag">&lt;/httpj:engine-factory&gt;</span>
- <span class="code-tag">&lt;/beans&gt;</span>
-</pre>
+  &lt;httpj:engine-factory bus="cxf"&gt;
+    &lt;httpj:identifiedTLSServerParameters id="secure"&gt;
+      &lt;httpj:tlsServerParameters&gt;
+        &lt;sec:keyManagers keyPassword="password"&gt;
+          &lt;sec:keyStore type="JKS" password="password"
+                      file="certs/cherry.jks"/&gt;
+        &lt;/sec:keyManagers&gt;
+      &lt;/httpj:tlsServerParameters&gt;
+    &lt;/httpj:identifiedTLSServerParameters&gt;
+
+    &lt;httpj:engine port="9001"&gt;
+      &lt;httpj:tlsServerParametersRef id="secure" /&gt;
+      &lt;httpj:threadingParameters minThreads="5"
+                                 maxThreads="15" /&gt;
+      &lt;httpj:connector&gt;
+        &lt;beans:bean class="org.eclipse.jetty.server.bio.SocketConnector"&gt;
+           &lt;beans:property name = "port" value="9001" /&gt;
+        &lt;/beans:bean&gt;
+      &lt;/httpj:connector&gt;
+      &lt;httpj:handlers&gt;
+        &lt;beans:bean class="org.eclipse.jetty.server.handler.DefaultHandler"/&gt;         
+      &lt;/httpj:handlers&gt;
+      &lt;httpj:sessionSupport&gt;true&lt;/httpj:sessionSupport&gt;
+    &lt;/httpj:engine&gt;
+  &lt;/httpj:engine-factory&gt;
+ &lt;/beans&gt;
+]]></script>
 </div></div></div>
            </div>
            <!-- Content -->

Modified: websites/production/cxf/content/docs/jms-transport.html
==============================================================================
--- websites/production/cxf/content/docs/jms-transport.html (original)
+++ websites/production/cxf/content/docs/jms-transport.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,17 @@
 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
 <meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, middleware, software, solutions, services, CXF, open source">
 <meta name="description" content="Apache CXF, Services Framework - JMS Transport">
+
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
+  <link href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css' rel='stylesheet' type='text/css' />
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js' type='text/javascript'></script>
+  <script src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+ 
     <title>
 Apache CXF -- JMS Transport
     </title>
@@ -42,19 +53,15 @@ Apache CXF -- JMS Transport
     <td id="cell-1-0">&nbsp;</td>
     <td id="cell-1-1">&nbsp;</td>
     <td id="cell-1-2">
-      <div style="padding: 5px;">
-        <div id="banner">
-          <!-- Banner -->
-<div id="banner-content">
+      <!-- Banner -->
+<div class="banner" id="banner"><p>
 <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" colspan="1" nowrap>
 <a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
 </td><td align="right" colspan="1" nowrap>
 <a shape="rect" href="http://www.apache.org/" title="The Apache Sofware Foundation"><img border="0" alt="ASF Logo" src="http://cxf.apache.org/images/asf-logo.png"></a>
 </td></tr></table>
-</div>
-          <!-- Banner -->
-        </div>
-      </div>
+</p></div>
+      <!-- Banner -->
       <div id="top-menu">
         <table border="0" cellpadding="1" cellspacing="0" width="100%">
           <tr>
@@ -94,7 +101,7 @@ Apache CXF -- JMS Transport
 
 
 <hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
 
 <form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="http://www.google.com/cse">
   <div>
@@ -133,18 +140,18 @@ Apache CXF -- JMS Transport
 
 <p>The WSDL extensions for defining a JMS endpoint are defined in the namespace <tt><a shape="rect" href="http://cxf.apache.org/transports/jms">http://cxf.apache.org/transports/jms</a></tt>. 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" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS Extension Namespace</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-xmlns:jms=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/jms"</span></span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+xmlns:jms="http://cxf.apache.org/transports/jms"
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JMSTransport-ConfigurationNamespaces"></a>Configuration Namespaces</h3>
 
 <p>In order to use the JMS configuration properties you will need to add the line shown below to the <tt>beans</tt> element of your configuration.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS Configuration Namespaces</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-xmlns:jms=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/jms"</span></span>
-</pre>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+xmlns:jms="http://cxf.apache.org/transports/jms"
+]]></script>
 </div></div>
 
 <h2><a shape="rect" name="JMSTransport-BasicEndpointConfiguration"></a>Basic Endpoint Configuration</h2>
@@ -182,19 +189,19 @@ The following is a list of common JNDI p
 
 <p>The following example shows an example of a JMS WSDL port specification.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS WSDL Port Specification</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;service name=<span class="code-quote">"JMSService"</span>&gt;
-  &lt;port binding=<span class="code-quote">"tns:Greeter_SOAPBinding"</span> name=<span class="code-quote">"SoapPort"</span>&gt;
-    &lt;jms:address jndiConnectionFactoryName=<span class="code-quote">"ConnectionFactory"</span>
-                 jndiDestinationName=<span class="code-quote">"dynamicQueues/test.cxf.jmstransport"</span>&gt;
-      &lt;jms:JMSNamingProperty name=<span class="code-quote">"java.naming.factory.initial"</span>
-                             value=<span class="code-quote">"org.apache.activemq.jndi.ActiveMQInitialContextFactory"</span> /&gt;
-      &lt;jms:JMSNamingProperty name=<span class="code-quote">"java.naming.provider.url"</span>
-                             value=<span class="code-quote">"tcp:<span class="code-comment">//localhost:61616"</span> /&gt;
-</span>    &lt;/jms:address&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;service name="JMSService"&gt;
+  &lt;port binding="tns:Greeter_SOAPBinding" name="SoapPort"&gt;
+    &lt;jms:address jndiConnectionFactoryName="ConnectionFactory"
+                 jndiDestinationName="dynamicQueues/test.cxf.jmstransport"&gt;
+      &lt;jms:JMSNamingProperty name="java.naming.factory.initial"
+                             value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" /&gt;
+      &lt;jms:JMSNamingProperty name="java.naming.provider.url"
+                             value="tcp://localhost:61616" /&gt;
+    &lt;/jms:address&gt;
   &lt;/port&gt;
 &lt;/service&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JMSTransport-UsingConfiguration"></a>Using Configuration</h3>
@@ -224,33 +231,33 @@ The following is a list of common JNDI p
 <h4><a shape="rect" name="JMSTransport-Example"></a>Example</h4>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Addressing Information a Configuration File</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;beans xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>
-</span>       xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
-</span>       xmlns:ct=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/configuration/types"</span>
-</span>       xmlns:jms=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/jms"</span>
-</span>       xsi:schemaLocation="
-           http:<span class="code-comment">//www.springframework.org/schema/beans 
-</span>           http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans.xsd
-</span>           http:<span class="code-comment">//cxf.apache.org/jaxws
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/jaxws.xsd
-</span>           http:<span class="code-comment">//cxf.apache.org/transports/jms
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/configuration/jms.xsd"&gt;
-</span>&lt;jms:conduit name=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"</span>&gt;
-</span>  &lt;jms:address destinationStyle=<span class="code-quote">"queue"</span>
-               jndiConnectionFactoryName=<span class="code-quote">"myConnectionFactory"</span>
-               jndiDestinationName=<span class="code-quote">"myDestination"</span>
-               jndiReplyDestinationName=<span class="code-quote">"myReplyDestination"</span>
-               connectionUserName=<span class="code-quote">"testUser"</span>
-               connectionPassword=<span class="code-quote">"testPassword"</span>&gt;
-    &lt;jms:JMSNamingProperty name=<span class="code-quote">"java.naming.factory.initial"</span>
-         value=<span class="code-quote">"org.apache.cxf.transport.jms.MyInitialContextFactory"</span>/&gt;
-    &lt;jms:JMSNamingProperty name=<span class="code-quote">"java.naming.provider.url"</span>
-         value=<span class="code-quote">"tcp:<span class="code-comment">//localhost:61616"</span>/&gt;
-</span>  &lt;/jms:address&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:ct="http://cxf.apache.org/configuration/types"
+       xmlns:jms="http://cxf.apache.org/transports/jms"
+       xsi:schemaLocation="
+           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"&gt;
+&lt;jms:conduit name="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"&gt;
+  &lt;jms:address destinationStyle="queue"
+               jndiConnectionFactoryName="myConnectionFactory"
+               jndiDestinationName="myDestination"
+               jndiReplyDestinationName="myReplyDestination"
+               connectionUserName="testUser"
+               connectionPassword="testPassword"&gt;
+    &lt;jms:JMSNamingProperty name="java.naming.factory.initial"
+         value="org.apache.cxf.transport.jms.MyInitialContextFactory"/&gt;
+    &lt;jms:JMSNamingProperty name="java.naming.provider.url"
+         value="tcp://localhost:61616"/&gt;
+  &lt;/jms:address&gt;
 &lt;/jms:conduit&gt;
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JMSTransport-ConsumerEndpointConfiguration"></a>Consumer Endpoint Configuration</h3>
@@ -274,29 +281,29 @@ The following is a list of common JNDI p
 
 <p>The following example shows a configuration entry for configuring a JMS consumer endpoint.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Configuration for a JMS Consumer Endpoint</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;beans xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>
-</span>       xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
-</span>       xmlns:ct=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/configuration/types"</span>
-</span>       xmlns:jms=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/jms"</span>
-</span>       xsi:schemaLocation="
-           http:<span class="code-comment">//www.springframework.org/schema/beans 
-</span>           http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans.xsd"
-</span>           http:<span class="code-comment">//cxf.apache.org/jaxws
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/jaxws.xsd
-</span>           http:<span class="code-comment">//cxf.apache.org/transports/jms
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/configuration/jms.xsd"&gt;
-</span>...
-&lt;jms:conduit name=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"</span>&gt;
-</span>  &lt;jms:address ... &gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:ct="http://cxf.apache.org/configuration/types"
+       xmlns:jms="http://cxf.apache.org/transports/jms"
+       xsi:schemaLocation="
+           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"&gt;
+...
+&lt;jms:conduit name="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"&gt;
+  &lt;jms:address ... &gt;
     ...
   &lt;/jms:address&gt;
-  &lt;jms:runtimePolicy messageType=<span class="code-quote">"binary"</span>/&gt;
+  &lt;jms:runtimePolicy messageType="binary"/&gt;
 ...
 &lt;/jms:conduit&gt;
 ...
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 <p>The id on the <tt>jms:conduit</tt> is in the form of {<tt><em>WSDLNamespace</em>}<em>WSDLPortName</em>.jms-conduit</tt>. This provides CXF with the information so that it can associate the configuration with your service's endpoint.</p>
 
@@ -329,33 +336,33 @@ The following is a list of common JNDI p
 
 <p>The following example shows a CXF configuration entry for configuring a JMS service endpoint.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Configuration for a JMS Service Endpoint</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;beans xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>
-</span>       xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
-</span>       xmlns:ct=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/configuration/types"</span>
-</span>       xmlns:jms=<span class="code-quote">"http:<span class="code-comment">//cxf.apache.org/transports/jms"</span>
-</span>       xsi:schemaLocation="
-           http:<span class="code-comment">//www.springframework.org/schema/beans
-</span>           http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans.xsd"
-</span>           http:<span class="code-comment">//cxf.apache.org/jaxws
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/jaxws.xsd
-</span>           http:<span class="code-comment">//cxf.apache.org/transports/jms
-</span>           http:<span class="code-comment">//cxf.apache.org/schemas/configuration/jms.xsd"&gt;
-</span>...
-&lt;jms:destination name=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination"</span>&gt;
-</span>  &lt;jms:address ... &gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:ct="http://cxf.apache.org/configuration/types"
+       xmlns:jms="http://cxf.apache.org/transports/jms"
+       xsi:schemaLocation="
+           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"&gt;
+...
+&lt;jms:destination name="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination"&gt;
+  &lt;jms:address ... &gt;
     ...
   &lt;/jms:address&gt;
   ...
-  &lt;jms:runtimePolicy messageSelector=<span class="code-quote">"cxf_message_selector"</span>
-       useMessageIDAsCorrelationID=<span class="code-quote">"<span class="code-keyword">true</span>"</span>
-       transactional=<span class="code-quote">"<span class="code-keyword">true</span>"</span>
-       durableSubscriberName=<span class="code-quote">"cxf_subscriber"</span> /&gt;
+  &lt;jms:runtimePolicy messageSelector="cxf_message_selector"
+       useMessageIDAsCorrelationID="true"
+       transactional="true"
+       durableSubscriberName="cxf_subscriber" /&gt;
   ...
 &lt;/jms:destination&gt;
 ...
 &lt;/beans&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JMSTransport-UsingWSDL"></a>Using WSDL</h3>
@@ -383,13 +390,13 @@ The <tt>jms:sessionPool</tt> element's a
 
 <p>The following example shows an example of configuring the session pool for a CXF JMS service endpoint.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS Session Pool Configuration</b></div><div class="codeContent panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 &lt;jms:destination 
-   name=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpit}HelloWorldJMSPort.jms-destination"</span>&gt;
-</span>...
-  &lt;jms:sessionPool lowWaterMark=<span class="code-quote">"10"</span> highWaterMark=<span class="code-quote">"5000"</span> /&gt;
+   name="{http://cxf.apache.org/jms_endpit}HelloWorldJMSPort.jms-destination"&gt;
+...
+  &lt;jms:sessionPool lowWaterMark="10" highWaterMark="5000" /&gt;
 &lt;/jms:destination&gt;
-</pre>
+]]></script>
 </div></div>
 <p>The <tt>jms:sessionPool</tt> element can also be used within a <tt>jms:conduit</tt>.</p>
 
@@ -406,13 +413,13 @@ The <tt>jms:sessionPool</tt> element's a
 
 <p>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" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS Consumer Endpoint Runtime Configuration</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;jms:conduit name=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"</span>&gt;
-</span>...
-  &lt;jms:clientConfig clientReceiveTimeout=<span class="code-quote">"500"</span>
-                    messageTimeToLive=<span class="code-quote">"500"</span> /&gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jms:conduit name="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-conduit"&gt;
+...
+  &lt;jms:clientConfig clientReceiveTimeout="500"
+                    messageTimeToLive="500" /&gt;
 &lt;/jms:conduit&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3><a shape="rect" name="JMSTransport-ServiceSpecificRuntimeConfiguration"></a>Service Specific Runtime Configuration</h3>
@@ -428,15 +435,15 @@ The <tt>jms:sessionPool</tt> element's a
 
 <p>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 <tt>jms-test-id</tt>.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>JMS Service Endpoint Runtime Configuration</b></div><div class="codeContent panelContent">
-<pre class="code-java">
-&lt;jms:destination id=<span class="code-quote">"{http:<span class="code-comment">//cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination"</span>&gt;
-</span>  &lt;jms:address ... &gt;
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;jms:destination id="{http://cxf.apache.org/jms_endpt}HelloWorldJMSPort.jms-destination"&gt;
+  &lt;jms:address ... &gt;
     ...
   &lt;/jms:address&gt;
-  &lt;jms:serverConfig messageTimeToLive=<span class="code-quote">"500"</span>
-                    durableSubscriptionClientId=<span class="code-quote">"jms-test-id"</span> /&gt;
+  &lt;jms:serverConfig messageTimeToLive="500"
+                    durableSubscriptionClientId="jms-test-id" /&gt;
 &lt;/jms:destination&gt;
-</pre>
+]]></script>
 </div></div></div>
            </div>
            <!-- Content -->



Mime
View raw message