Author: buildbot
Date: Tue Jul 2 01:34:11 2013
New Revision: 868097
Log:
Staging update by buildbot for tomee
Modified:
websites/staging/tomee/trunk/cgi-bin/ (props changed)
websites/staging/tomee/trunk/content/ (props changed)
websites/staging/tomee/trunk/content/examples-trunk/async-postconstruct/README.html
Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jul 2 01:34:11 2013
@@ -1 +1 @@
-1498751
+1498752
Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jul 2 01:34:11 2013
@@ -1 +1 @@
-1498751
+1498752
Modified:
websites/staging/tomee/trunk/content/examples-trunk/async-postconstruct/README.html
==============================================================================
---
websites/staging/tomee/trunk/content/examples-trunk/async-postconstruct/README.html
(original)
+++
websites/staging/tomee/trunk/content/examples-trunk/async-postconstruct/README.html
Tue Jul 2 01:34:11 2013
@@ -133,7 +133,16 @@
</h1>
</div>
-<p>Placing <code>@Asynchronous</code> on the <code>@PostConstruct</code> of an
EJB is not a supported part of Java EE, but this example shows a patter which
works just as well with little effort.</p>
+<p>Placing <code>@Asynchronous</code> on the <code>@PostConstruct</code> of an
EJB is not a supported part of Java EE, but this example shows a pattern which
works just as well with little effort.</p>
+
+<p>The heart of this pattern is to:</p>
+
+<ul>
+<li>pass the construction "logic" to an <code>@Asynchronous</code> method via
a <code>java.util.concurrent.Callable</code></li>
+<li>ensure the bean does not process invocations till construction is complete
via an <code>@AroundInvoke</code> method on the bean and the
<code>java.util.concurrent.Future</code></li>
+</ul>
+
+<p>Simple and effective. The result is a faster starting application that is
still thread-safe.</p>
<pre><code>package org.superbiz.asyncpost;