deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r864998 [2/15] - in /websites/staging/deltaspike/trunk/content: ./ deltaspike/ deltaspike/draft/ deltaspike/resources/ draft/ resources/ resources/css/ resources/files/ resources/images/ resources/js/
Date Sun, 09 Jun 2013 09:26:33 GMT
Added: websites/staging/deltaspike/trunk/content/build.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/build.html (added)
+++ websites/staging/deltaspike/trunk/content/build.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,175 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Building DeltaSpike from source</title>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file to you under the Apache License,
Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0
. Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied.  See the License for the specific language governing
permissions and limitations under the License. -->
+
+    <!-- Styles -->
+    
+    <link href="./deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./deltaspike/resources/css/prettify.css" rel="stylesheet" />
-->
+    <link href="./deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-1']);
+	  _gaq.push(['_trackPageview']);
+	
+	  (function() {
+		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+	  })();
+	
+	</script>
+</head>
+
+<body>
+
+    <div class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./deltaspike/index.html">Home</a></li>
+                        <li><a href="./deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./deltaspike/download.html">Download</a></li>
-->
+                        <li><a href="./deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./deltaspike/support.html">Support</a></li>
 -->
+                        <li><a href="./deltaspike/news.html">News</a></li>
+                        <li><a href="./deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"
 class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Building DeltaSpike from source</h1>
+              </div>
+              <p>Deltaspike uses <a href="http://maven.apache.org/">maven</a>
build tool to automate the compilation, testing and packaging of the project</p>
+<h2 id="full-build">Full build</h2>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span>
+</pre></div>
+
+
+<h2 id="build-with-test">Build with test</h2>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">POWB</span> <span class="o">//</span><span class="n">execute</span>
<span class="n">the</span> <span class="n">unit</span> <span class="n">tests</span>
<span class="n">with</span> <span class="n">OpenWebBeans</span>
+<span class="n">or</span>
+<span class="n">mvn</span> <span class="n">clean</span> <span
class="n">install</span> <span class="o">-</span><span class="n">PWeld</span>
<span class="o">//</span><span class="n">execute</span> <span class="n">the</span>
<span class="n">unit</span> <span class="n">tests</span> <span
class="n">with</span> <span class="n">Weld</span>
+</pre></div>
+
+
+<h2 id="build-example">Build example</h2>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Pexamples</span> <span class="o">-</span><span class="n">POWB</span>
<span class="o">//</span><span class="n">build</span> <span class="n">everything</span>
<span class="n">including</span> <span class="n">the</span> <span
class="n">examples</span> <span class="n">with</span> <span class="n">OpenWebBeans</span>
+<span class="n">or</span>
+<span class="n">mvn</span> <span class="n">clean</span> <span
class="n">install</span> <span class="o">-</span><span class="n">Pexamples</span>
<span class="o">-</span><span class="n">PWeld</span> <span class="o">//</span><span
class="n">build</span> <span class="n">everything</span> <span class="n">including</span>
<span class="n">the</span> <span class="n">examples</span> <span
class="n">with</span> <span class="n">Weld</span>
+</pre></div>
+
+
+<h2 id="integration-tests">Integration Tests</h2>
+<p>With the unpack Maven-Plugin all Arquillian-Tests get copied to the integration-test
module. Together with the special integration-tests they get executed via a remote container.
Currently we have configurations for the following containers.</p>
+<h3 id="tomee">TomEE</h3>
+<p><strong>Executing the Arquillian tests with Apache TomEE</strong></p>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Ptomee</span><span class="o">-</span><span class="n">build</span><span
class="o">-</span><span class="n">managed</span>
+</pre></div>
+
+
+<h3 id="jbossas7">JBossAS7</h3>
+<h4 id="without-existing-as7">Without existing AS7</h4>
+<p><strong>Executing the Arquillian tests with JBoss-AS7 (without AS7 installation)</strong></p>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Pjbossas</span><span class="o">-</span><span class="n">build</span><span
class="o">-</span><span class="n">managed</span><span class="o">-</span>7
+</pre></div>
+
+
+<h4 id="with-existing-as7">With existing AS7</h4>
+<p>Set JBoss_HOME</p>
+<p><strong>Executing the Arquillian tests with JBoss-AS7 (AS7 installation required)</strong></p>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Pjbossas</span><span class="o">-</span><span class="n">managed</span><span
class="o">-</span>7
+</pre></div>
+
+
+<h3 id="glassfish-31">GlassFish 3.1</h3>
+<p>Install GlassFish (default setup without admin-password) and start GlassFish with
asadmin start-domain</p>
+<p><strong>Executing the Arquillian tests with Oracle Glassfish 3.1+</strong></p>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Pglassfish</span><span class="o">-</span><span class="n">remote</span><span
class="o">-</span>3<span class="p">.</span>1
+</pre></div>
+
+
+<h3 id="weblogic-12c">WebLogic 12c</h3>
+<p>Install WebLogic 12c. Start Confiuration Wizard to create a new basic WebLogic Domain.
Default options and domain name = base_domain, administrator user name = weblogic1, administrator
password = weblogic1.
+Set WLS_HOME so that %WLS_HOME%\server\lib\weblogic.jar exists.
+Start the domain.</p>
+<p><strong>Executing the Arquillian tests with Oracle WebLogic 12c</strong></p>
+<div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">clean</span> <span class="n">install</span> <span class="o">-</span><span
class="n">Pwls</span><span class="o">-</span><span class="n">remote</span><span
class="o">-</span>12<span class="n">c</span>
+</pre></div>
+
+
+<h2 id="jenkins-builds">Jenkins Builds</h2>
+<p><a href="https://builds.apache.org/view/A-D/view/DeltaSpike/">https://builds.apache.org/view/A-D/view/DeltaSpike/</a></p>
+<h2 id="sonar">Sonar</h2>
+<p>https://analysis.apache.org/dashboard/index/org.apache.deltaspike:deltaspike-project</p>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under
the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software
Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./deltaspike/resources/js/jquery.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/deltaspike/trunk/content/community.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/community.html (added)
+++ websites/staging/deltaspike/trunk/content/community.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,188 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Community</title>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file to you under the Apache License,
Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0
. Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied.  See the License for the specific language governing
permissions and limitations under the License. -->
+
+    <!-- Styles -->
+    
+    <link href="./deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./deltaspike/resources/css/prettify.css" rel="stylesheet" />
-->
+    <link href="./deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-1']);
+	  _gaq.push(['_trackPageview']);
+	
+	  (function() {
+		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+	  })();
+	
+	</script>
+</head>
+
+<body>
+
+    <div class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./deltaspike/index.html">Home</a></li>
+                        <li><a href="./deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./deltaspike/download.html">Download</a></li>
-->
+                        <li><a href="./deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./deltaspike/support.html">Support</a></li>
 -->
+                        <li><a href="./deltaspike/news.html">News</a></li>
+                        <li><a href="./deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"
 class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Community</h1>
+              </div>
+              <h1 id="users">Users</h1>
+<p>If you are a new user and you would like to start using DeltaSpike, you can have
a look at the <a href="documentation.html">Documentation</a> and <a href="mailto:users-subscribe@deltaspike.apache.org">subscribe</a>
our <a href="mailto:users@deltaspike.apache.org">mailing list for users</a>.
+If you have troubles to find the information you are looking for, you can also ask in our
<a href="#IRC">IRC-Channel</a>.</p>
+<p>Furthermore, you can check our <a href="#mailing-lists">mail-archives</a>.</p>
+<p>Before you file a ticket in our <a href="https://issues.apache.org/jira/browse/DELTASPIKE">Jira</a>,
please ask on the mailing list if it's a known issue in case of a bug or if there is an ongoing
discussion in case of a feature.</p>
+<p>You are very welcome to follow our twitter account <a href="http://twitter.com/#!/DeltaSpikeTeam">@DeltaSpikeTeam</a>
and spread the word of DeltaSpike with Tweets, Blog-Entries,...</p>
+<h1 id="getting-involved">Getting Involved</h1>
+<p>Everybody is welcome to get involved with our community. You can find general information
at <a href="http://apache.org/foundation/getinvolved.html">http://apache.org/foundation/getinvolved.html</a>
and <a href="http://apache.org/foundation/how-it-works.html">http://apache.org/foundation/how-it-works.html</a>.
+The following sections provides some details about the different levels of getting involved.</p>
+<h2 id="contributors">Contributors</h2>
+<p>Before you get a committer you have to contribute to our effort. E.g. you can help
users, participate in discussions on the dev list, submit patches,... . Therefore, it's essential
to file a/n <a href="http://www.apache.org/licenses/icla.txt">(I)CLA</a> or <a
href="http://www.apache.org/licenses/cla-corporate.txt">CLA</a> and send it to secretary
at apache dot org (or fax it) as early as possible.</p>
+<p>If you would like to submit a patch through Jira, you can have a look at the <a
href="suggested-git-workflows.html">suggested approach</a>.</p>
+<p>Here is the contributors/committers page: <a href="contributors.html">Contributors</a>.</p>
+<h2 id="committers">Committers</h2>
+<p>Before you read this section, please ensure that you have read the contributor section.
All of you are welcome to join our development effort. <a href="mailto:dev-subscribe@deltaspike.apache.org">Subscribe</a>
our <a href="mailto:dev@deltaspike.apache.org">mailing list for developers</a>
and start contributing and help users.</p>
+<p>Optionally <a href="mailto:commits-subscribe@deltaspike.apache.org">subscribe</a>
our <a href="mailto:commits@deltaspike.apache.org">mailing list for commits</a>.</p>
+<p>Furthermore, you can check our <a href="community.html#mailing-lists">mail-archives</a>.</p>
+<p>Further details are available at <a href="http://www.apache.org/dev/">http://www.apache.org/dev/</a>.</p>
+<h1 id="mailing-lists">Mailing lists</h1>
+<table class="table">
+<thead>
+<tr>
+<th>List (Address)</th>
+<th>Subscribe</th>
+<th>Unsubscribe</th>
+<th>Archive</th>
+<th>Mirrors</th>
+<th></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td><a href="mailto:users@deltaspike.apache.org">User List</a></td>
+<td><a href="mailto:users-subscribe@deltaspike.apache.org">Subscribe</a></td>
+<td><a href="mailto:users-unsubscribe@deltaspike.apache.org">Unsubscribe</a></td>
+<td><a href="http://mail-archives.apache.org/mod_mbox/deltaspike-users/">Archive</a></td>
+<td><a href="http://apache-deltaspike-discussions.2316169.n4.nabble.com/">Nabble</a></td>
+<td><a href="http://markmail.org/search/?q=list%3Aorg.apache.deltaspike-users+order%3Adate-backward">MarkMail</a></td>
+<td></td>
+</tr>
+<tr>
+<td><a href="mailto:dev@deltaspike.apache.org">Developer List</a></td>
+<td><a href="mailto:dev-subscribe@deltaspike.apache.org">Subscribe</a></td>
+<td><a href="mailto:dev-unsubscribe@deltaspike.apache.org">Unsubscribe</a></td>
+<td><a href="http://mail-archives.apache.org/mod_mbox/deltaspike-dev/">Archive</a></td>
+<td><a href="http://apache-deltaspike-discussions.2316169.n4.nabble.com/">Nabble</a></td></td>
+<td><a href="http://markmail.org/search/?q=list%3Aorg.apache.deltaspike-dev+order%3Adate-backward">MarkMail</a></td>
+<td></td>
+</tr>
+<tr>
+<td><a href="mailto:commits@deltaspike.apache.org">Committer List</a></td>
+<td><a href="mailto:commits-subscribe@deltaspike.apache.org">Subscribe</a></td>
+<td><a href="mailto:commits-unsubscribe@deltaspike.apache.org">Unsubscribe</a></td>
+<td><a href="http://mail-archives.apache.org/mod_mbox/deltaspike-commits/">Archive</a></td>
+<td></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+
+<h1 id="jira">JIRA</h1>
+<p>Any kind of issue has to be filed in our <a href="https://issues.apache.org/jira/browse/DELTASPIKE">issue-tracker</a>.
If you have any question, you can ask us (e.g. via the mailing list for users).</p>
+<h1 id="spread-the-word">Spread the word</h1>
+<p>You are very welcome e.g. to write blog entries, tweet (#DeltaSpike) about the project
or just follow our twitter account (<a href="http://twitter.com/#!/DeltaSpikeTeam">@DeltaSpikeTeam</a>),
...</p>
+<h1 id="irc">IRC</h1>
+<p>Usually discussions happen on the mailing list. Some informal discussions take place
in our IRC-Channel <a href="irc://irc.freenode.net/deltaspike">irc://irc.freenode.net/deltaspike</a></p>
+<div class="codehilite"><pre><span class="c1">//with the irssi command-line
client:</span>
+<span class="err">$</span> <span class="n">irssi</span>
+
+<span class="o">&gt;</span> <span class="o">/</span><span
class="n">connect</span> <span class="n">irc</span><span class="p">.</span><span
class="n">freenode</span><span class="p">.</span><span class="n">net</span>
+<span class="o">&gt;</span> <span class="o">/</span><span
class="k">join</span> <span class="p">#</span><span class="n">deltaspike</span>
+</pre></div>
+
+
+<p>If you are new to IRC you can use the pre-configures web-client you can find <a
href="http://people.apache.org/~gpetracek/deltaspike/freenode.html">here</a>.</p>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under
the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software
Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./deltaspike/resources/js/jquery.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/deltaspike/trunk/content/container-control.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/container-control.html (added)
+++ websites/staging/deltaspike/trunk/content/container-control.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,181 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Container &amp; Control</title>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file to you under the Apache License,
Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0
. Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied.  See the License for the specific language governing
permissions and limitations under the License. -->
+
+    <!-- Styles -->
+    
+    <link href="./deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./deltaspike/resources/css/prettify.css" rel="stylesheet" />
-->
+    <link href="./deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-1']);
+	  _gaq.push(['_trackPageview']);
+	
+	  (function() {
+		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+	  })();
+	
+	</script>
+</head>
+
+<body>
+
+    <div class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./deltaspike/index.html">Home</a></li>
+                        <li><a href="./deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./deltaspike/download.html">Download</a></li>
-->
+                        <li><a href="./deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./deltaspike/support.html">Support</a></li>
 -->
+                        <li><a href="./deltaspike/news.html">News</a></li>
+                        <li><a href="./deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"
 class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Container &amp; Control</h1>
+              </div>
+              <div class="toc">
+<ul>
+<li><a href="#introduction">Introduction</a><ul>
+<li><a href="#cdicontainer">CdiContainer</a></li>
+<li><a href="#contextcontrol-usage">ContextControl usage</a></li>
+</ul>
+</li>
+</ul>
+</div>
+<hr />
+<h1 id="introduction">Introduction</h1>
+<p>There are basically two parts:</p>
+<ul>
+<li>The <strong>CdiContainer</strong> interface allows to boot and shutdown
the CDI container in SE applications.</li>
+<li>The <strong>ContextControl</strong> interface allows to control the
life-cycle of the built-in contexts of the CDI container.</li>
+</ul>
+<h2 id="cdicontainer">CdiContainer</h2>
+<p>See the Java SE part <a href="#start-a-cdi-container-using-java-se">above</a>.</p>
+<h2 id="contextcontrol-usage">ContextControl usage</h2>
+<p>The <code>ContextControl</code> interface allows you to start and stop
built-in standard Contexts like <code>@RequestScoped</code>, <code>@ConversationScoped</code>,
<code>@SessionScoped</code>, etc. It is provided as <code>@Dependent</code>
bean and can get injected in the classic CDI way. This is not only usable in Java SE projects
but also very helpful in Servlets and Java EE containers.</p>
+<p><strong>Restarting the RequestContext in unit tests</strong></p>
+<p>In unit testing it can be necessary to test with attached and also with detached
JPA entities. A very common approach for JPA is the <a href="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Server/1.0/html/Hibernate_Entity_Manager_Reference_Guide/transactions.html">entitymanager-per-request
approach</a> and thus have a producer method which creates a @RequestScoped EntityManager.
Since a single unit test is usually treated as one ‘request’ a problem arises detaching
entities.</p>
+<p>Using ContextControl to detach entities:</p>
+<div class="codehilite"><pre><span class="nd">@Test</span>
+<span class="kd">public</span> <span class="kt">void</span> <span
class="nf">testMyBusinessLogic</span><span class="o">()</span>
+<span class="o">{</span>
+    <span class="n">doSomeJpaStuff</span><span class="o">()</span>
+    <span class="n">MyEntity</span> <span class="n">me</span> <span
class="o">=</span> <span class="n">em</span><span class="o">.</span><span
class="na">find</span><span class="o">(...);</span>
+
+    <span class="n">ContextControl</span> <span class="n">ctxCtrl</span>
<span class="o">=</span> <span class="n">BeanProvider</span><span
class="o">.</span><span class="na">getContextualReference</span><span
class="o">(</span><span class="n">ContextControl</span><span class="o">.</span><span
class="na">class</span><span class="o">);</span>
+
+    <span class="c1">//stopping the request context will dispose the @RequestScoped
EntityManager</span>
+    <span class="n">ctxCtrl</span><span class="o">.</span><span
class="na">stopContext</span><span class="o">(</span><span class="n">RequestScoped</span><span
class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+    <span class="c1">// and now immediately restart the context again</span>
+    <span class="n">ctxCtrl</span><span class="o">.</span><span
class="na">startContext</span><span class="o">(</span><span class="n">RequestScoped</span><span
class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+    <span class="c1">// the entity &#39;em&#39; is now in a detached state!</span>
+    <span class="n">doSomeStuffWithTheDetachedEntity</span><span class="o">(</span><span
class="n">em</span><span class="o">);</span>
+<span class="o">}</span>
+</pre></div>
+
+
+<p>Attaching a Request Context to a new thread in EE</p>
+<p>Accessing the <code>@RequestScoped</code> bean in a new thread will
result in a <code>ContextNotActiveException</code>. The request-context usually
gets started for a particular thread via a simple <code>ServletRequestListener</code>.
So "no servlet-request" means that there is no Servlet-Context for the current (/new) Thread.
+You might face such issues, if you would like to reuse business services in e.g. a Quartz
Job.</p>
+<p>Controlling the request-context for a Quartz-Job:</p>
+<div class="codehilite"><pre><span class="kd">public</span> <span
class="kd">class</span> <span class="nc">CdiJob</span> <span class="kd">implements</span>
<span class="n">org</span><span class="o">.</span><span class="na">quartz</span><span
class="o">.</span><span class="na">Job</span>
+<span class="o">{</span>
+    <span class="kd">public</span> <span class="kt">void</span> <span
class="nf">execute</span><span class="o">(</span><span class="n">JobExecutionContext</span>
<span class="n">context</span><span class="o">)</span> <span class="kd">throws</span>
<span class="n">JobExecutionException</span>
+    <span class="o">{</span>
+        <span class="n">ContextControl</span> <span class="n">ctxCtrl</span>
<span class="o">=</span> <span class="n">BeanProvider</span><span
class="o">.</span><span class="na">getContextualReference</span><span
class="o">(</span><span class="n">ContextControl</span><span class="o">.</span><span
class="na">class</span><span class="o">);</span>
+
+        <span class="c1">//this will implicitly bind a new RequestContext to the current
thread</span>
+        <span class="n">ctxCtrl</span><span class="o">.</span><span
class="na">startContext</span><span class="o">(</span><span class="n">RequestScoped</span><span
class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+        <span class="k">try</span>
+        <span class="o">{</span>
+            <span class="n">doYourWork</span><span class="o">();</span>
+        <span class="o">}</span>
+        <span class="k">finally</span>
+        <span class="o">{</span>
+            <span class="c1">//stop the RequestContext to ensure that all request-scoped
beans get cleaned up.</span>
+            <span class="n">ctxCtrl</span><span class="o">.</span><span
class="na">stopContext</span><span class="o">(</span><span class="n">RequestScoped</span><span
class="o">.</span><span class="na">class</span><span class="o">);</span>
+        <span class="o">}</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under
the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software
Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./deltaspike/resources/js/jquery.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/deltaspike/trunk/content/contributors.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/contributors.html (added)
+++ websites/staging/deltaspike/trunk/content/contributors.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,28 @@
+{% extends "deltaspike-markdown.html" %}
+
+
+{% block title %}Apache DeltaSpike{% endblock %}
+{% block content %}
+
+<ul class="contributors">
+{% for contributor in contributors %}
+    <li>
+        <div class="photo">
+            <a href="{{ contributor.gravatarHome }}">
+                <img src="http://gravatar.com/avatar/{{ contributor.gravatarImage }}?s=140"/>
+            </a>
+            <ul>
+                <li><a href="{{ contributor.site }}">Blog</a></li>
+                <li><a href="{{ contributor.twitter }}">Twitter</a></li>
+                <li><a href="{{ contributor.github }}">GitHub</a></li>
+            </ul>
+        </div>
+        <h3>{{ contributor.name }}</h3>
+        {{ contributor.info }}
+    </li>
+{% endfor %}
+</ul>
+
+<div align="center">All information below are provided by Gravatar</div>
+
+{% endblock %}



Mime
View raw message