You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by bu...@apache.org on 2018/07/06 08:51:57 UTC

svn commit: r1032163 [5/5] - in /websites/staging/openwebbeans/trunk/content: ./ meecrowave/ meecrowave/meecrowave-core/ meecrowave/meecrowave-gradle/ meecrowave/meecrowave-jolokia/ meecrowave/meecrowave-jpa/ meecrowave/meecrowave-jta/ meecrowave/meecr...

Modified: websites/staging/openwebbeans/trunk/content/meecrowave/start.html
==============================================================================
--- websites/staging/openwebbeans/trunk/content/meecrowave/start.html (original)
+++ websites/staging/openwebbeans/trunk/content/meecrowave/start.html Fri Jul  6 08:51:56 2018
@@ -47,7 +47,7 @@
 <div class="doc-wrapper">
     <div class="container">
         <div id="doc-header" class="doc-header text-center">
-            <h1 class="doc-title"><span aria-hidden="true" class="icon icon_lifesaver"></span> Quick start</h1>
+            <h1 class="doc-title"><span aria-hidden="true" class="icon icon_documents_alt"></span> Quick start</h1>
         </div><!--//doc-header-->
 
 <div class="doc-body">
@@ -66,75 +66,73 @@
 
 
             <section class="doc-section">
-                <div class="sect1">
-<h2 id="_your_first_application">Your first application</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Meecrowave relies on JAX-RS and CDI so to start you just need to write a JAX-RS endpoint:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Path("kitchen")
+                <div class="sect1"> 
+ <h2 id="_your_first_application">Your first application</h2> 
+ <div class="sectionbody"> 
+  <div class="paragraph"> 
+   <p>Meecrowave relies on JAX-RS and CDI so to start you just need to write a JAX-RS endpoint:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Path("kitchen")
 @ApplicationScoped
 public class HelloKitchen {
     @GET
     public String getMenu() {
         return "good things";
     }
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>Then booting Meecrowave is as easy as launching:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">try (final Meecrowave meecrowave = new Meecrowave().bake()) {
+}</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>Then booting Meecrowave is as easy as launching:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">try (final Meecrowave meecrowave = new Meecrowave().bake()) {
     new Scanner(System.in).nextLine();
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>You should get some output containing:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code>[19:54:55.397][INFO][main][.meecrowave.cxf.CxfCdiAutoSetup] REST Application: / -&gt; org.apache.cxf.cdi.DefaultApplication
+}</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>You should get some output containing:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code>[19:54:55.397][INFO][main][.meecrowave.cxf.CxfCdiAutoSetup] REST Application: / -&gt; org.apache.cxf.cdi.DefaultApplication
 [19:54:55.399][INFO][main][.meecrowave.cxf.CxfCdiAutoSetup]      Service URI: /kitchen  -&gt; org.app.HelloKitchen
-[19:54:55.401][INFO][main][.meecrowave.cxf.CxfCdiAutoSetup]               GET /kitchen/ -&gt;      String getMenu()</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>And you can check it works doing:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code>curl http://localhost:8080/kitchen</code></pre>
-</div>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_you_re_in_a_hurry_use_groovy">You&#8217;re in a hurry? Use groovy!</h2>
-<div class="sectionbody">
-<div class="admonitionblock important">
-<table>
-<tr>
-<td class="icon">
-<i class="fa icon-important" title="Important"></i>
-</td>
-<td class="content">
-this feature is supported starting from version 0.3.0 only.
-</td>
-</tr>
-</table>
-</div>
-<div class="paragraph">
-<p>Create a file called <code>hello.groovy</code>:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Grab('org.apache.meecrowave:meecrowave-core:0.3.0')
+[19:54:55.401][INFO][main][.meecrowave.cxf.CxfCdiAutoSetup]               GET /kitchen/ -&gt;      String getMenu()</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>And you can check it works doing:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code>curl http://localhost:8080/kitchen</code></pre> 
+   </div> 
+  </div> 
+ </div> 
+</div> 
+<div class="sect1"> 
+ <h2 id="_you_re_in_a_hurry_use_groovy">You’re in a hurry? Use groovy!</h2> 
+ <div class="sectionbody"> 
+  <div class="admonitionblock important"> 
+   <table> 
+    <tbody>
+     <tr> 
+      <td class="icon"> <i class="fa icon-important" title="Important"></i> </td> 
+      <td class="content"> this feature is supported starting from version 0.3.0 only. </td> 
+     </tr> 
+    </tbody>
+   </table> 
+  </div> 
+  <div class="paragraph"> 
+   <p>Create a file called <code>hello.groovy</code>:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Grab('org.apache.meecrowave:meecrowave-core:0.3.0')
 
 import org.apache.meecrowave.Meecrowave
 
@@ -151,34 +149,34 @@ class Hello {
     }
 }
 
-new Meecrowave().bake().await()</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>then</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">groovy hello.groovy</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>Finally you can test it:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">curl http://localhost:8080/hello</code></pre>
-</div>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_sample">Sample</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p><a href="https://github.com/apache/meecrowave/tree/trunk/sample" class="bare">https://github.com/apache/meecrowave/tree/trunk/sample</a> module is a ready to use hello world using meecrowave.</p>
-</div>
-</div>
+new Meecrowave().bake().await()</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>then</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">groovy hello.groovy</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>Finally you can test it:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">curl http://localhost:8080/hello</code></pre> 
+   </div> 
+  </div> 
+ </div> 
+</div> 
+<div class="sect1"> 
+ <h2 id="_sample">Sample</h2> 
+ <div class="sectionbody"> 
+  <div class="paragraph"> 
+   <p><a href="https://github.com/apache/meecrowave/tree/trunk/sample" class="bare">https://github.com/apache/meecrowave/tree/trunk/sample</a> module is a ready to use hello world using meecrowave.</p> 
+  </div> 
+ </div> 
 </div>
             </section><!--//doc-section-->
 

Modified: websites/staging/openwebbeans/trunk/content/meecrowave/start.pdf
==============================================================================
Binary files - no diff available.

Modified: websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html
==============================================================================
--- websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html (original)
+++ websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.html Fri Jul  6 08:51:56 2018
@@ -47,7 +47,7 @@
 <div class="doc-wrapper">
     <div class="container">
         <div id="doc-header" class="doc-header text-center">
-            <h1 class="doc-title"><span aria-hidden="true" class="icon icon_lifesaver"></span> Meecrowave Testing</h1>
+            <h1 class="doc-title"><span aria-hidden="true" class="icon icon icon_puzzle_alt"></span> Meecrowave Testing</h1>
         </div><!--//doc-header-->
 
 <div class="doc-body">
@@ -66,34 +66,32 @@
 
 
             <section class="doc-section">
-                <div class="sect1">
-<h2 id="_junit">JUnit</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Coordinates:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
+                <div class="sect1"> 
+ <h2 id="_junit">JUnit</h2> 
+ <div class="sectionbody"> 
+  <div class="paragraph"> 
+   <p>Coordinates:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
   &lt;groupId&gt;org.apache.meecrowave&lt;/groupId&gt;
   &lt;artifactId&gt;meecrowave-junit&lt;/artifactId&gt;
   &lt;version&gt;${meecrowave.version}&lt;/version&gt;
-&lt;/dependency&gt;</code></pre>
-</div>
-</div>
-<div class="sect2">
-<h3 id="_rules_and_runners">Rules and Runners</h3>
-<div class="paragraph">
-<p>Meecrowave provides two flavors of JUnit integration: standalone or runners/rules. The standalone one will
-ensure there is a single container for the whole JVM. It also fits standalone environments where you want to control the lifecycle.
-The other one will follow the JUnit lifecycle (per class or test rule).</p>
-</div>
-<div class="paragraph">
-<p>Here how to use the standalone flavor:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@RunWith(MonoMeecrowave.Runner.class)
+&lt;/dependency&gt;</code></pre> 
+   </div> 
+  </div> 
+  <div class="sect2"> 
+   <h3 id="_rules_and_runners">Rules and Runners</h3> 
+   <div class="paragraph"> 
+    <p>Meecrowave provides two flavors of JUnit integration: standalone or runners/rules. The standalone one will ensure there is a single container for the whole JVM. It also fits standalone environments where you want to control the lifecycle. The other one will follow the JUnit lifecycle (per class or test rule).</p> 
+   </div> 
+   <div class="paragraph"> 
+    <p>Here how to use the standalone flavor:</p> 
+   </div> 
+   <div class="listingblock"> 
+    <div class="content"> 
+     <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@RunWith(MonoMeecrowave.Runner.class)
 public class MonoMeecrowaveRuleTest {
     /* or
     @ClassRule
@@ -107,23 +105,21 @@ public class MonoMeecrowaveRuleTest {
     public void test() throws IOException {
         // use "http://localhost:" + config.getHttpPort()
     }
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>When using the standalone, <code>@MonoMeecrowave.Runner.ConfigurationInject</code> allows to still
-access the configuration and random HTTP port.</p>
-</div>
-<div class="paragraph">
-<p>For the configuration, the standalone runner will use a global configuration shared by all tests. To load it
-it will use a standard <code>ServiceLoader</code> on type <code>org.apache.meecrowave.Meecrowave$ConfigurationCustomizer</code>.</p>
-</div>
-<div class="paragraph">
-<p>And here is the one bound to the JUnit lifecycle</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">public class MeecrowaveRuleTest {
+}</code></pre> 
+    </div> 
+   </div> 
+   <div class="paragraph"> 
+    <p>When using the standalone, <code>@MonoMeecrowave.Runner.ConfigurationInject</code> allows to still access the configuration and random HTTP port.</p> 
+   </div> 
+   <div class="paragraph"> 
+    <p>For the configuration, the standalone runner will use a global configuration shared by all tests. To load it it will use a standard <code>ServiceLoader</code> on type <code>org.apache.meecrowave.Meecrowave$ConfigurationCustomizer</code>.</p> 
+   </div> 
+   <div class="paragraph"> 
+    <p>And here is the one bound to the JUnit lifecycle</p> 
+   </div> 
+   <div class="listingblock"> 
+    <div class="content"> 
+     <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">public class MeecrowaveRuleTest {
     @ClassRule // started once for the class, @Rule would be per method
     public static final MeecrowaveRule RULE = new MeecrowaveRule();
 
@@ -131,27 +127,24 @@ it will use a standard <code>ServiceLoad
     public void test() throws IOException {
         // use "http://localhost:" + RULE.getConfiguration().getHttpPort()
     }
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>As usual with JUnit rules, you can decide whereas the Meecrowave instance is bound to the entire test class
-or a method by using @ClassRule or @Rule.</p>
-</div>
-</div>
-<div class="sect2">
-<h3 id="_junit_5">JUnit 5</h3>
-<div class="paragraph">
-<p>JUnit 5 integrates a new <code>Extension</code> system. It is not yet very well supported by IDEs but you can already use it with
-Gradle and Maven (see <a href="http://junit.org/junit5/docs/current/user-guide/#running-tests" class="bare">http://junit.org/junit5/docs/current/user-guide/#running-tests</a>).</p>
-</div>
-<div class="paragraph">
-<p>The usage has two annotations: <code>@MeecrowaveConfig</code> which remaps most of the configuration of Meecrowave and <code>@MonoMeecrowaveConfig</code>
-which is close to <code>MonoMeecrowave.Runner</code> in term of usage.</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@MeecrowaveConfig /*(some config)*/
+}</code></pre> 
+    </div> 
+   </div> 
+   <div class="paragraph"> 
+    <p>As usual with JUnit rules, you can decide whereas the Meecrowave instance is bound to the entire test class or a method by using @ClassRule or @Rule.</p> 
+   </div> 
+  </div> 
+  <div class="sect2"> 
+   <h3 id="_junit_5">JUnit 5</h3> 
+   <div class="paragraph"> 
+    <p>JUnit 5 integrates a new <code>Extension</code> system. It is not yet very well supported by IDEs but you can already use it with Gradle and Maven (see <a href="http://junit.org/junit5/docs/current/user-guide/#running-tests" class="bare">http://junit.org/junit5/docs/current/user-guide/#running-tests</a>).</p> 
+   </div> 
+   <div class="paragraph"> 
+    <p>The usage has two annotations: <code>@MeecrowaveConfig</code> which remaps most of the configuration of Meecrowave and <code>@MonoMeecrowaveConfig</code> which is close to <code>MonoMeecrowave.Runner</code> in term of usage.</p> 
+   </div> 
+   <div class="listingblock"> 
+    <div class="content"> 
+     <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@MeecrowaveConfig /*(some config)*/
 public class MeecrowaveConfigTest {
     @ConfigurationInject
     private Meecrowave.Builder config;
@@ -161,47 +154,47 @@ public class MeecrowaveConfigTest {
         final String base = "http://localhost:" + config.getHttpPort();
         // asserts
     }
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>Or</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@MonoMeecrowaveConfig
+}</code></pre> 
+    </div> 
+   </div> 
+   <div class="paragraph"> 
+    <p>Or</p> 
+   </div> 
+   <div class="listingblock"> 
+    <div class="content"> 
+     <pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@MonoMeecrowaveConfig
 public class MeecrowaveConfigTest {
     // ...
-}</code></pre>
-</div>
-</div>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_arquillian_container">Arquillian Container</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Container dependency:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
+}</code></pre> 
+    </div> 
+   </div> 
+  </div> 
+ </div> 
+</div> 
+<div class="sect1"> 
+ <h2 id="_arquillian_container">Arquillian Container</h2> 
+ <div class="sectionbody"> 
+  <div class="paragraph"> 
+   <p>Container dependency:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
   &lt;groupId&gt;org.apache.meecrowave&lt;/groupId&gt;
   &lt;artifactId&gt;meecrowave-arquillian&lt;/artifactId&gt;
   &lt;version&gt;${meecrowave.version}&lt;/version&gt;
-&lt;/dependency&gt;</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>For the configuration check <a href="/meecrowave/meecrowave-core/configuration.html">Core configuration</a>.</p>
-</div>
-<div class="paragraph">
-<p>Here is a sample:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;/dependency&gt;</code></pre> 
+   </div> 
+  </div> 
+  <div class="paragraph"> 
+   <p>For the configuration check <a href="/meecrowave/meecrowave-core/configuration.html">Core configuration</a>.</p> 
+  </div> 
+  <div class="paragraph"> 
+   <p>Here is a sample:</p> 
+  </div> 
+  <div class="listingblock"> 
+   <div class="content"> 
+    <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;arquillian xmlns="http://jboss.org/schema/arquillian"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"&gt;
@@ -214,12 +207,14 @@ public class MeecrowaveConfigTest {
       &lt;property name="cxfServletParams"&gt;
         hide-service-list-page=true
       &lt;/property&gt;
+      &lt;property name="defaultSSLHostConfigName"&gt;&lt;/property&gt;
       &lt;property name="deleteBaseOnStartup"&gt;true&lt;/property&gt;
       &lt;property name="dir"&gt;&lt;/property&gt;
       &lt;property name="host"&gt;localhost&lt;/property&gt;
       &lt;property name="http2"&gt;false&lt;/property&gt;
       &lt;property name="httpPort"&gt;-1&lt;/property&gt;
       &lt;property name="httpsPort"&gt;8443&lt;/property&gt;
+      &lt;property name="initializeClientBus"&gt;true&lt;/property&gt;
       &lt;property name="injectServletContainerInitializer"&gt;true&lt;/property&gt;
       &lt;property name="jaxrsAutoActivateBeanValidation"&gt;true&lt;/property&gt;
       &lt;property name="jaxrsDefaultProviders"&gt;&lt;/property&gt;
@@ -269,7 +264,7 @@ public class MeecrowaveConfigTest {
       &lt;property name="ssl"&gt;false&lt;/property&gt;
       &lt;property name="sslProtocol"&gt;&lt;/property&gt;
       &lt;property name="stopPort"&gt;-1&lt;/property&gt;
-      &lt;property name="tempDir"&gt;/tmp/meecrowave_6653909983110&lt;/property&gt;
+      &lt;property name="tempDir"&gt;/tmp/meecrowave_785858432269167&lt;/property&gt;
       &lt;property name="tomcatAccessLogPattern"&gt;&lt;/property&gt;
       &lt;property name="tomcatAutoSetup"&gt;true&lt;/property&gt;
       &lt;property name="tomcatFilter"&gt;&lt;/property&gt;
@@ -284,13 +279,15 @@ public class MeecrowaveConfigTest {
         other=secret
       &lt;/property&gt;
       &lt;property name="webResourceCached"&gt;true&lt;/property&gt;
+      &lt;property name="webSessionCookieConfig"&gt;&lt;/property&gt;
+      &lt;property name="webSessionTimeout"&gt;&lt;/property&gt;
       &lt;property name="webXml"&gt;&lt;/property&gt;
     &lt;/configuration&gt;
   &lt;/container&gt;
-&lt;/arquillian&gt;</code></pre>
-</div>
-</div>
-</div>
+&lt;/arquillian&gt;</code></pre> 
+   </div> 
+  </div> 
+ </div> 
 </div>
             </section><!--//doc-section-->
 

Modified: websites/staging/openwebbeans/trunk/content/meecrowave/testing/index.pdf
==============================================================================
Binary files - no diff available.