You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2018/12/09 02:55:03 UTC
svn commit: r1848496 [8/16] - in /tomee/site/trunk/content: community/
latest/docs/ latest/docs/admin/cluster/ latest/docs/admin/configuration/
latest/docs/advanced/client/ latest/docs/advanced/jms/
latest/docs/advanced/setup/ latest/docs/advanced/shad...
Modified: tomee/site/trunk/content/master/docs/advanced/jms/jms-configuration.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/advanced/jms/jms-configuration.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/advanced/jms/jms-configuration.html (original)
+++ tomee/site/trunk/content/master/docs/advanced/jms/jms-configuration.html Sun Dec 9 02:54:59 2018
@@ -101,8 +101,9 @@
<div class="row">
<div class="col-md-12">
- <div class="sect3">
-<h4 id="_why_my_activemq_jms_mdb_is_not_scaling_as_expected">Why my ActiveMQ/JMS MDB is not scaling as expected?</h4>
+ <div class="sect1">
+<h2 id="_why_my_activemq_jms_mdb_is_not_scaling_as_expected">Why my ActiveMQ/JMS MDB is not scaling as expected?</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>There are multiple configurations points to ensure you scale as much as you want.</p>
</div>
@@ -181,13 +182,16 @@ can make the behavior changing but this
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_slow_message_consumption">Slow Message Consumption</h4>
+</div>
+<div class="sect1">
+<h2 id="_slow_message_consumption">Slow Message Consumption</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>If you find you have a slow consumption of messages there are several options to have a look (activemq website explains it very well)
but one very impacting option can be the prefetch size.</p>
</div>
</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/advanced/setup/index.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/advanced/setup/index.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/advanced/setup/index.html (original)
+++ tomee/site/trunk/content/master/docs/advanced/setup/index.html Sun Dec 9 02:54:59 2018
@@ -185,8 +185,9 @@ split TomEE and application binaries and
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_instance_scripts">Instance scripts</h3>
+<div class="sect1">
+<h2 id="_instance_scripts">Instance scripts</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>The idea for instances (applications) scripts is to simply delegate to tomcat ones but customizing the JVM and TomEE versions.</p>
</div>
@@ -196,8 +197,8 @@ split TomEE and application binaries and
<div class="paragraph">
<p>Here are an example for the common scripts (of course you can write helper version like restart etc).</p>
</div>
-<div class="sect3">
-<h4 id="_setenv_sh">setenv.sh</h4>
+<div class="sect2">
+<h3 id="_setenv_sh">setenv.sh</h3>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">#! /bin/sh
@@ -213,8 +214,8 @@ export CATALINA_PID="/some/path/applicat
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_startup">startup</h4>
+<div class="sect2">
+<h3 id="_startup">startup</h3>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">#! /bin/bash
@@ -225,8 +226,8 @@ nohup "$CATALINA_HOME/bin/startup.sh" "$
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_shutdown">shutdown</h4>
+<div class="sect2">
+<h3 id="_shutdown">shutdown</h3>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">#! /bin/bash
@@ -238,6 +239,7 @@ source "$proc_script_base/bin/setenv.sh"
</div>
</div>
</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/advanced/shading/index.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/advanced/shading/index.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/advanced/shading/index.html (original)
+++ tomee/site/trunk/content/master/docs/advanced/shading/index.html Sun Dec 9 02:54:59 2018
@@ -334,7 +334,7 @@ shadowJar {
</div>
<div class="listingblock">
<div class="content">
-<pre class="highlight"><code>gradle clean build shadowJar</code></pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">gradle clean build shadowJar</code></pre>
</div>
</div>
<div class="paragraph">
@@ -342,7 +342,7 @@ shadowJar {
</div>
<div class="listingblock">
<div class="content">
-<pre class="highlight"><code>java -jar build/libs/demo-gradle-tomee-embedded-shade-1.0-SNAPSHOT-bundle.jar --as-war --simple-log=true</code></pre>
+<pre class="highlight"><code class="language-bash" data-lang="bash">java -jar build/libs/demo-gradle-tomee-embedded-shade-1.0-SNAPSHOT-bundle.jar --as-war --simple-log=true</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/advanced/tomee-embedded/index.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/advanced/tomee-embedded/index.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/advanced/tomee-embedded/index.html (original)
+++ tomee/site/trunk/content/master/docs/advanced/tomee-embedded/index.html Sun Dec 9 02:54:59 2018
@@ -618,7 +618,7 @@ if you already do a custom shade/fatjar
</div>
<div class="listingblock">
<div class="content">
-<pre class="highlight"><code># security configuration
+<pre class="highlight"><code class="language-properties" data-lang="properties"># security configuration
securityConstraint =
securityConstraint.authConstraint = true
securityConstraint.authRole = **
@@ -639,7 +639,7 @@ properties.java.security.auth.login.conf
</div>
<div class="listingblock">
<div class="content">
-<pre class="highlight"><code>properties.openejb.log.factory = log4j2
+<pre class="highlight"><code class="language-properties" data-lang="properties">properties.openejb.log.factory = log4j2
properties.openejb.container.additional.include = com.fasterxml.jackson,org.apache.logging.log4j</code></pre>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/alternate-descriptors.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/alternate-descriptors.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/alternate-descriptors.html (original)
+++ tomee/site/trunk/content/master/docs/alternate-descriptors.html Sun Dec 9 02:54:59 2018
@@ -153,14 +153,14 @@ app like this:</p>
<div class="paragraph">
<p>Just initialize your test case like so:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> Properties properties = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java"> Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
properties.setProperty("openejb.altdd.prefix", "test");
- InitialContext initialContext = new InitialContext(properties);</pre>
+ InitialContext initialContext = new InitialContext(properties);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -227,12 +227,12 @@ both have their own ejb-jar.xml files:</
<div class="paragraph">
<p>The "foo" test case could set the <em>openejb.altdd.prefix</em> as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> //...
+<pre class="highlight"><code class="language-java" data-lang="java"> //...
properties.setProperty("openejb.altdd.prefix", "footest, test");
- InitialContext initialContext = new InitialContext(properties);</pre>
+ InitialContext initialContext = new InitialContext(properties);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -254,12 +254,12 @@ both have their own ejb-jar.xml files:</
<div class="paragraph">
<p>And the "bar" test case could set the <em>openejb.altdd.prefix</em> as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> //...
+<pre class="highlight"><code class="language-java" data-lang="java"> //...
properties.setProperty("openejb.altdd.prefix", "footest, test");
- InitialContext initialContext = new InitialContext(properties);</pre>
+ InitialContext initialContext = new InitialContext(properties);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/annotations,-xml-and-defaults.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/annotations%2C-xml-and-defaults.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/annotations,-xml-and-defaults.html (original)
+++ tomee/site/trunk/content/master/docs/annotations,-xml-and-defaults.html Sun Dec 9 02:54:59 2018
@@ -95,9 +95,9 @@
<div class="row">
<div class="col-md-12">
- <div class="literalblock">
+ <div class="listingblock">
<div class="content">
-<pre> <p>The following is a list of all annotations and their attributes, the xml tags that correspond to them (for overriding), and what the default values are when left unspecified.</p></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"> <p>The following is a list of all annotations and their attributes, the xml tags that correspond to them (for overriding), and what the default values are when left unspecified.</p></code></pre>
</div>
</div>
<div class="paragraph">
@@ -109,9 +109,9 @@
<div class="paragraph">
<p>default value</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> </div></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"> </div></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-composer/advanced.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-composer/advanced.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-composer/advanced.html (original)
+++ tomee/site/trunk/content/master/docs/application-composer/advanced.html Sun Dec 9 02:54:59 2018
@@ -88,41 +88,45 @@
<div class="col-md-12">
<div class='page-header'>
- <h1>null</h1>
+ <h1>Application Composer Advanced</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
- <div class="sect1">
-<h2 id="_application_composer_advanced">Application Composer Advanced</h2>
+ <div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p><a href="getting-started.html">Getting Started</a> page gives you already a lot
of inputs but you caneven go further.</p>
</div>
-<div class="sect2">
-<h3 id="__descriptors">@Descriptors</h3>
+</div>
+</div>
+<div class="sect1">
+<h2 id="__descriptors">@Descriptors</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>You can reuse existing file descriptors using <code>@Descriptors</code>. The name
is the file name and the path either a classpath path or a file path:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>// runner if needed etc...
+<pre class="highlight"><code class="language-java" data-lang="java">// runner if needed etc...
@Descriptors(@Descriptor(name = "persistence.xml", path = "META-INF/persistence.xml"))
public class MyTest {
//...
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Note: this can be put in a <code>@Module</code> method as well.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_services">Services</h3>
+</div>
+<div class="sect1">
+<h2 id="_services">Services</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>If you want to test a JAXRS or JAXWS service you need to activate these
services.</p>
@@ -130,18 +134,20 @@ services.</p>
<div class="paragraph">
<p>To do so just add the needed dependency and use <code>@EnableServices</code>:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>// runner if needed etc...
+<pre class="highlight"><code class="language-java" data-lang="java">// runner if needed etc...
@EnableService("jaxrs") // jaxws supported as well
public class MyTest {
//...
-}</pre>
+}</code></pre>
+</div>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_random_port">Random port</h3>
+<div class="sect1">
+<h2 id="_random_port">Random port</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Services like JAXRS and JAXWS relies on HTTP. Often it is nice to have a
random port to be able to deploy multiple tests/projects on the same CI
@@ -152,13 +158,13 @@ platform at the same time.</p>
an injection giving you either the port (<code>int</code>) or the root context
(<code>URL</code>):</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>// runner, services if needed etc...
+<pre class="highlight"><code class="language-java" data-lang="java">// runner, services if needed etc...
public class MyTest {
@RandomPort("http")
private int port;
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
@@ -167,52 +173,64 @@ the service it will apply on (being said
which is our embedded http layer).</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_nice_logs">Nice logs</h3>
+</div>
+<div class="sect1">
+<h2 id="_nice_logs">Nice logs</h2>
+<div class="sectionbody">
<div class="paragraph">
<p><code>@SimpleLog</code> annotation allows you to have one liner logs</p>
</div>
</div>
-<div class="sect2">
-<h3 id="__jaxrsprovider">@JaxrsProvider</h3>
+</div>
+<div class="sect1">
+<h2 id="__jaxrsprovider">@JaxrsProvider</h2>
+<div class="sectionbody">
<div class="paragraph">
<p><code>@JaxrsProvider</code> allows you to specify on a <code>@Module</code> method the list of
JAXRS provider you want to use.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_dependencies_without_hacky_code">Dependencies without hacky code</h3>
+</div>
+<div class="sect1">
+<h2 id="_dependencies_without_hacky_code">Dependencies without hacky code</h2>
+<div class="sectionbody">
<div class="paragraph">
<p><code>@Jars</code> allows you to add dependencies (scanned) to your application
automatically (like CDI libraries):</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@Module
+<pre class="highlight"><code class="language-java" data-lang="java">@Module
@Classes(cdi = true, value = { C1.class, C2.class, E1.class })
@Jars("deltaspike-")
public WebApp app() {
return new WebApp();
-}</pre>
+}</code></pre>
+</div>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="__default">@Default</h3>
+<div class="sect1">
+<h2 id="__default">@Default</h2>
+<div class="sectionbody">
<div class="paragraph">
<p><code>@Default</code> automatically adds in the application <code>target/classes</code> as
binaries and <code>src/main/webapp</code> as resources for maven projects.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="__cdiextensions">@CdiExtensions</h3>
+</div>
+<div class="sect1">
+<h2 id="__cdiextensions">@CdiExtensions</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>This annotation allows you to control which extensions are activated
during the test.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="__appresource">@AppResource</h3>
+</div>
+<div class="sect1">
+<h2 id="__appresource">@AppResource</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>This annotation allows injection of few particular test resources like:</p>
</div>
@@ -233,21 +251,24 @@ during the test.</p>
</ul>
</div>
</div>
-<div class="sect2">
-<h3 id="__mockinjector">@MockInjector</h3>
+</div>
+<div class="sect1">
+<h2 id="__mockinjector">@MockInjector</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Allows to mock EJB injections. It decorates a dedicated method returning
an instance (or Class) implementing <code>FallbackPropertyInjector</code>.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="__webresource">@WebResource</h3>
+</div>
+<div class="sect1">
+<h2 id="__webresource">@WebResource</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Allow for web application to add folders containing web resources.</p>
</div>
</div>
</div>
-</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-composer/getting-started.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-composer/getting-started.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-composer/getting-started.html (original)
+++ tomee/site/trunk/content/master/docs/application-composer/getting-started.html Sun Dec 9 02:54:59 2018
@@ -88,72 +88,76 @@
<div class="col-md-12">
<div class='page-header'>
- <h1>null</h1>
+ <h1>Application Composer Getting Started</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
- <div class="sect1">
-<h2 id="_application_composer_getting_started">Application Composer Getting Started</h2>
+ <div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p>ApplicationComposer API is mainly contained in
<code>org.apache.openejb.testing</code> package (historically, today we would have
called the package <code>org.apache.tomee.applicationcomposer</code>).</p>
</div>
-<div class="sect2">
-<h3 id="_dependencies">Dependencies</h3>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_dependencies">Dependencies</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>To start using ApplicationComposer you need to add some dependencies.</p>
</div>
<div class="paragraph">
<p>The minimum required one is <code>openejb-core</code>:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><dependency>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-core</artifactId>
<version>${openejb.version></version>
-</dependency></pre>
+</dependency></code></pre>
</div>
</div>
<div class="paragraph">
<p>If you need JAXRS services you’ll add (or replace thanks to transitivity
of maven) <code>openejb-cxf-rs</code>:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><dependency>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-cxf-rs</artifactId>
<version>${openejb.version></version>
-</dependency></pre>
+</dependency></code></pre>
</div>
</div>
<div class="paragraph">
<p>If you need JAXWS services you’ll add (or replace thanks to transitivity
of maven) <code>openejb-cxf</code>:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><dependency>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-cxf</artifactId>
<version>${openejb.version></version>
-</dependency></pre>
+</dependency></code></pre>
</div>
</div>
<div class="paragraph">
<p>etc…​</p>
</div>
</div>
+</div>
+<div class="sect1">
+<h2 id="_applicationcomposer_components">ApplicationComposer Components</h2>
+<div class="sectionbody">
<div class="sect2">
-<h3 id="_applicationcomposer_components">ApplicationComposer Components</h3>
-<div class="sect3">
-<h4 id="__module">@Module</h4>
+<h3 id="__module">@Module</h3>
<div class="paragraph">
<p>An ApplicationComposer needs at minimum a module (the application you
need to deploy).</p>
@@ -218,18 +222,18 @@ module and some scanned classes. For ins
create a web application with classes C1, C2 as CDI beans and E1 as an
EJB automatically:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@Module
+<pre class="highlight"><code class="language-java" data-lang="java">@Module
@Classes(cdi = true, value = { C1.class, C2.class, E1.class })
public WebApp app() {
return new WebApp();
-}</pre>
+}</code></pre>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="__configuration">@Configuration</h4>
+<div class="sect2">
+<h3 id="__configuration">@Configuration</h3>
<div class="paragraph">
<p>Often you need to customize a bit the container or at least create some
resources like test databases. To do so you can create a method
@@ -246,35 +250,35 @@ resources.</p>
<div class="paragraph">
<p>Here is a sample:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@Configuration
+<pre class="highlight"><code class="language-java" data-lang="java">@Configuration
public Properties configuration() {
return new PropertiesBuilder()
.p("db", "new://Resource?type=DataSource")
.p("db.JdbcUrld", "jdbc:hsqldb:mem:test")
.build();
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Since TomEE 2.x you can also put properties on ApplicationComposer class
using <code>@ContainerProperties</code> API:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@ContainerProperties({
+<pre class="highlight"><code class="language-java" data-lang="java">@ContainerProperties({
@ContainerProperties.Property(name = "db", value = "new://Resource?type=DataSource"),
@ContainerProperties.Property(name = "db.JdbcUrl", value = "jdbc:hsqldb:mem:test")
})
public class MyAppComposer() {
// ...
-}</pre>
+}</code></pre>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="__component">@Component</h4>
+<div class="sect2">
+<h3 id="__component">@Component</h3>
<div class="paragraph">
<p>Sometimes you need to customize a container component. The most common
use case is the security service to mock a little bit authorization if
@@ -289,20 +293,22 @@ instance you desire.</p>
be a <code>Class</code>. This one is deduced from the returned type of the
<code>@Component</code> method:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@Component
+<pre class="highlight"><code class="language-java" data-lang="java">@Component
public SecurityService mockSecurity() {
return new MySecurityService();
-}</pre>
+}</code></pre>
</div>
</div>
</div>
</div>
+</div>
+<div class="sect1">
+<h2 id="_how_to_run_it">How to run it?</h2>
+<div class="sectionbody">
<div class="sect2">
-<h3 id="_how_to_run_it">How to run it?</h3>
-<div class="sect3">
-<h4 id="_junit">JUnit</h4>
+<h3 id="_junit">JUnit</h3>
<div class="paragraph">
<p>If you use JUnit you have mainly 2 solutions to run you "model" using
the ApplicationComposer:</p>
@@ -339,8 +345,8 @@ service for instance).</p>
test class was a managed bean!</p>
</div>
</div>
-<div class="sect3">
-<h4 id="_testng">TestNG</h4>
+<div class="sect2">
+<h3 id="_testng">TestNG</h3>
<div class="paragraph">
<p>TestNG integration is quite simple today and mainly
<code>ApplicationComposerListener</code> class you can configure as a listener to
@@ -351,21 +357,21 @@ get ApplicationComposer features.</p>
if the test class was a managed bean!</p>
</div>
</div>
-<div class="sect3">
-<h4 id="_standalone">Standalone</h4>
+<div class="sect2">
+<h3 id="_standalone">Standalone</h3>
<div class="paragraph">
<p>Since TomEE 2.x you can also use <code>ApplicationComposers</code> to directly run
you ApplicationComposer model as a standalone application:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class MyApp {
+<pre class="highlight"><code class="language-java" data-lang="java">public class MyApp {
public static void main(String[] args) {
ApplicationComposers.run(MyApp.class, args);
}
// @Module, @Configuration etc...
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
@@ -377,11 +383,13 @@ depending it!)</p>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_junit_sample">JUnit Sample</h3>
-<div class="literalblock">
+</div>
+<div class="sect1">
+<h2 id="_junit_sample">JUnit Sample</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>@Classes(cdi = true, value = { MyService.class, MyOtherService.class })
+<pre class="highlight"><code class="language-java" data-lang="java">@Classes(cdi = true, value = { MyService.class, MyOtherService.class })
@ContainerProperties(@ContainerProperties.Property(name = "myDb", value = "new://Resource?type=DataSource"))
@RunWith(ApplicationComposer.class)
public class MyTest {
@@ -395,19 +403,20 @@ public class MyTest {
public void myTest() {
// do test using injections
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_going_further">Going further</h3>
+</div>
+<div class="sect1">
+<h2 id="_going_further">Going further</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>If you want to learn more about ApplicationComposer see
<a href="advanced.html">Advanced</a> page.</p>
</div>
</div>
</div>
-</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-composer/history.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-composer/history.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-composer/history.html (original)
+++ tomee/site/trunk/content/master/docs/application-composer/history.html Sun Dec 9 02:54:59 2018
@@ -88,22 +88,24 @@
<div class="col-md-12">
<div class='page-header'>
- <h1>null</h1>
+ <h1>Application Composer History</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
- <div class="sect1">
-<h2 id="_application_composer_history">Application Composer History</h2>
+ <div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p>ApplicationComposer can look like a long story but following it you’ll
realize it is finally quite natural.</p>
</div>
-<div class="sect2">
-<h3 id="_internal_tool">Internal tool</h3>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_internal_tool">Internal tool</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>TomEE (former OpenEJB) is an Application Server. One of the most
important task writing an Application Server is to ensure the
@@ -124,8 +126,10 @@ about runtime: the application packaging
a EE application programmatically.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_designs">Designs</h3>
+</div>
+<div class="sect1">
+<h2 id="_designs">Designs</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>ApplicationComposer design was aligned on this simple need. An
ApplicationComposer "test" (browsing other pages you’ll see it is much
@@ -144,8 +148,10 @@ container (creating resources for instan
</ul>
</div>
</div>
-<div class="sect2">
-<h3 id="_test_but_not_only">Test but not only</h3>
+</div>
+<div class="sect1">
+<h2 id="_test_but_not_only">Test but not only</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>ApplicationComposer was originally a JUnit only runner but was pretty
quickly extended to TestNG too and today you can even use it to write
@@ -156,8 +162,10 @@ quickly extended to TestNG too and today
with a simple shade a JAXRS/JAXWS/JMS service!</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_going_further">Going further</h3>
+</div>
+<div class="sect1">
+<h2 id="_going_further">Going further</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>If you want to go further you can browse:</p>
</div>
@@ -173,7 +181,6 @@ with a simple shade a JAXRS/JAXWS/JMS se
</div>
</div>
</div>
-</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-composer/index.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-composer/index.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-composer/index.html (original)
+++ tomee/site/trunk/content/master/docs/application-composer/index.html Sun Dec 9 02:54:59 2018
@@ -88,17 +88,14 @@
<div class="col-md-12">
<div class='page-header'>
- <h1>null</h1>
+ <h1>Application Composer</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
- <div class="sect1">
-<h2 id="_application_composer">Application Composer</h2>
-<div class="sectionbody">
-<div class="paragraph">
+ <div class="paragraph">
<p>Here is the subdomain dedicated to the Application Composer.</p>
</div>
<div class="paragraph">
@@ -131,8 +128,6 @@ further, <a href="advanced.html">Advance
</li>
</ul>
</div>
-</div>
-</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-deployment-solutions.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-deployment-solutions.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-deployment-solutions.html (original)
+++ tomee/site/trunk/content/master/docs/application-deployment-solutions.html Sun Dec 9 02:54:59 2018
@@ -162,17 +162,17 @@ pom you have access to the following con
<div class="paragraph">
<p>Then simply run</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>mvn tomee:deploy <path></pre>
+<pre class="highlight"><code class="language-bash" data-lang="bash">mvn tomee:deploy <path></code></pre>
</div>
</div>
<div class="paragraph">
<p>or</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>mvn tomee:undeploy <path></pre>
+<pre class="highlight"><code class="language-bash" data-lang="bash">mvn tomee:undeploy <path></code></pre>
</div>
</div>
<div class="sect4">
Modified: tomee/site/trunk/content/master/docs/application-discovery-via-the-classpath.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-discovery-via-the-classpath.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-discovery-via-the-classpath.html (original)
+++ tomee/site/trunk/content/master/docs/application-discovery-via-the-classpath.html Sun Dec 9 02:54:59 2018
@@ -109,9 +109,9 @@ like deployed while in an embedded mode.
<p>Simplify the issue of searching for annotated applications by adding an
ejb-jar.xml like this to your app:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><ejb-jar/></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><ejb-jar/></code></pre>
</div>
</div>
<div class="paragraph">
@@ -187,11 +187,11 @@ should always be used even on OSs using
opposite direction or change the processing order. The default values
for the properties are as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> openejb.exclude-include.order=include-exclude //Defines the processing order
+<pre class="highlight"><code class="language-properties" data-lang="properties"> openejb.exclude-include.order=include-exclude //Defines the processing order
openejb.deployments.classpath.include="" //Include nothing
- openejb.deployments.classpath.exclude=".*" //Exclude everything</pre>
+ openejb.deployments.classpath.exclude=".*" //Exclude everything</code></pre>
</div>
</div>
<div class="paragraph">
@@ -199,13 +199,13 @@ for the properties are as follows:</p>
each are combined together to create the list of paths OpenEJB will
scrape for annotations.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>*Note:* by default these settings will only affect which jars OpenEJB will
+<pre class="highlight"><code class="language-java" data-lang="java">*Note:* by default these settings will only affect which jars OpenEJB will
scan for annotated components when no descriptor is found. If you would
like to use these settings to also filter out jars that do contain
descriptors, set the *openejb.deployments.classpath.filter.descriptors*
- property to _true_. The default is _false_.</pre>
+ property to _true_. The default is _false_.</code></pre>
</div>
</div>
</div>
@@ -225,14 +225,14 @@ for your ejb module is in the classpath,
in your test setup will help you see what OpenEJB sees (which may be
nothing):</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>Enumeration<URL> ejbJars =
+<pre class="highlight"><code class="language-properties" data-lang="properties">Enumeration<URL> ejbJars =
this.getClass().getClassLoader().getResources("META-INF/ejb-jar.xml");
while (ejbJars.hasMoreElements()) {
URL url = ejbJars.nextElement();
System.out.println("app = " + url);
-}</pre>
+}</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/application-resources.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/application-resources.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/application-resources.html (original)
+++ tomee/site/trunk/content/master/docs/application-resources.html Sun Dec 9 02:54:59 2018
@@ -111,11 +111,11 @@ available server-wide, whereas defining
<p>As a simple example, a JMS queue can be defined within <code>tomee.xml</code> with
the following configuration.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><tomee>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><tomee>
<Resource id="MyQueue" type="javax.jms.Queue"/>
-</tomee></pre>
+</tomee></code></pre>
</div>
</div>
<div class="paragraph">
@@ -125,9 +125,9 @@ into managed components using the <code>
below. The <code>name</code> attribute on the <code>@Resource</code> annotation should match
the <code>id</code> attribute on the <code>Resource</code> tag.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class JmsClient {
+<pre class="highlight"><code class="language-java" data-lang="java">public class JmsClient {
@Resource(name="MyQueue")
private Queue queue;
@@ -136,16 +136,16 @@ the <code>id</code> attribute on the <co
// implementation here...
}
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>As an alternative to defining a resource in XML, resources can also be
defined using system properties:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>MyQueue = new://Resource?type=javax.jms.Queue</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">MyQueue = new://Resource?type=javax.jms.Queue</code></pre>
</div>
</div>
<div class="paragraph">
@@ -170,14 +170,14 @@ and password to be able to connect to a
configured with the following syntax. Notice the key/value pair syntax
for the properties within the <code><Resource></code> tag.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="DB" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="DB" type="DataSource">
JdbcDriver com.mysql.jdbc.Driver
JdbcUrl jdbc:mysql://localhost/test
UserName test
Password password
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -187,13 +187,13 @@ specifying an additional property for ea
resource ID as a prefix: <code><resourceId>.<propertyName>=<value></code>. The
system properties equivalent of the resource above is:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>p.setProperty("DB", "new://Resource?type=DataSource");
+<pre class="highlight"><code class="language-java" data-lang="java">p.setProperty("DB", "new://Resource?type=DataSource");
p.setProperty("DB.JdbcDriver", "com.mysql.jdbc.Driver");
p.setProperty("DB,JdbcUrl", "jdbc:mysql://localhost/test");
p.setProperty("DB.UserName", "test");
-p.setProperty("DB.Password", "password");</pre>
+p.setProperty("DB.Password", "password");</code></pre>
</div>
</div>
<div class="paragraph">
@@ -274,29 +274,29 @@ known resource types are.</p>
<div class="paragraph">
<p>So the following simple resource</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class Configuration {
+<pre class="highlight"><code class="language-java" data-lang="java">public class Configuration {
private String url;
private String username;
private int poolSize;
// getters and setters
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Can be defined in <code>tomee.xml</code> using the following configuration (note
the <code>class-name</code> attribute):</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="config" class-name="org.superbiz.Configuration">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="config" class-name="org.superbiz.Configuration">
url http://localhost
username tomee
poolSize 20
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -319,9 +319,9 @@ below, and this will have any used prope
configuration set added to it. So as an alternative to the above code,
you could do:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class Configuration {
+<pre class="highlight"><code class="language-java" data-lang="java">public class Configuration {
private Properties properties;
@@ -333,19 +333,19 @@ you could do:</p>
this.properties = properties;
}
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Using the same resource definition:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="config" class-name="org.superbiz.Configuration">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="config" class-name="org.superbiz.Configuration">
url http://localhost
username tomee
poolSize 20
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -369,15 +369,15 @@ file, include a <code>WEB-INF/resources.
<code>tomee.xml</code>. One key difference is the root element of the XML is
<code><resources></code> and not <code><tomee></code>.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><resources>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><resources>
<Resource id="config" class-name="org.superbiz.Configuration">
url http://localhost
username tomee
poolSize 20
</Resource>
-</resources></pre>
+</resources></code></pre>
</div>
</div>
<div class="paragraph">
@@ -463,13 +463,13 @@ specified on the <code>Resource</code>,
its no-arg constructor. If you wish to pass constructor arguments,
specify the arguments as a comma separated list:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="config" class-name="org.superbiz.Configuration" constructor="id, poolSize">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="config" class-name="org.superbiz.Configuration" constructor="id, poolSize">
url http://localhost
username tomee
poolSize 20
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -486,9 +486,9 @@ no argument method that returns an objec
<div class="paragraph">
<p>For example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class Factory {
+<pre class="highlight"><code class="language-java" data-lang="java">public class Factory {
private Properties properties;
@@ -514,7 +514,7 @@ no argument method that returns an objec
<Resource id="MyResource" class-name="org.superbiz.Factory" factory-name="create">
UserName tomee
</Resource>
-</resources></pre>
+</resources></code></pre>
</div>
</div>
</div>
@@ -530,9 +530,9 @@ destroyed. Using @PostConstruct will eff
resource to be instantiated when the application is starting - in the
same way that the <code>InitializeAfterDeployment</code> property does.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class MyClass {
+<pre class="highlight"><code class="language-java" data-lang="java">public class MyClass {
private Properties properties;
@@ -550,7 +550,7 @@ same way that the <code>InitializeAfterD
}
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/arquillian-available-adapters.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/arquillian-available-adapters.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/arquillian-available-adapters.html (original)
+++ tomee/site/trunk/content/master/docs/arquillian-available-adapters.html Sun Dec 9 02:54:59 2018
@@ -105,9 +105,9 @@ if you are not at all familiar with Arqu
<p>All the Arquillian Adapters for TomEE support the following
configuration options in the <strong>src/test/resources/arquillian.xml</strong>:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><container qualifier="tomee" default="true">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><container qualifier="tomee" default="true">
<configuration>
<property name="httpPort">-1</property>
<property name="stopPort">-1</property>
@@ -121,16 +121,16 @@ configuration options in the <strong>src
</property>
-->
</configuration>
-</container></pre>
+</container></code></pre>
</div>
</div>
<div class="paragraph">
<p>The above can also be set as system properties rather than via the
<strong>src/test/resources/arquillian.xml</strong> file.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><build>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -143,7 +143,7 @@ configuration options in the <strong>src
</configuration>
</plugin>
</plugins>
-</build></pre>
+</build></code></pre>
</div>
</div>
<div class="paragraph">
@@ -155,10 +155,10 @@ avoiding port conflicts on CI systems or
a system property using the same name. The test case can use the
property to retrieve the port and contact the server.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>URL url = new URL("http://localhost:" + System.getProperty("tomee.httpPort");
-// use the URL to connect to the server</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">URL url = new URL("http://localhost:" + System.getProperty("tomee.httpPort");
+// use the URL to connect to the server</code></pre>
</div>
</div>
<div class="paragraph">
@@ -168,11 +168,11 @@ property to retrieve the port and contac
<p>When you are actually using a test on the client side, you can use
instead</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import org.jboss.arquillian.test.api.ArquillianResource;
+<pre class="highlight"><code class="language-java" data-lang="java">import org.jboss.arquillian.test.api.ArquillianResource;
...
-@ArquillianResource private URL url;</pre>
+@ArquillianResource private URL url;</code></pre>
</div>
</div>
<div class="paragraph">
@@ -198,9 +198,9 @@ Adapter.</p>
<p>To use the TomEE Embedded Arquillian Adapter, simply add these Maven
dependencies to your Maven pom.xml:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><dependency>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>arquillian-tomee-embedded</artifactId>
<version>1.7.1</version> <!--Current version-->
@@ -220,7 +220,7 @@ dependencies to your Maven pom.xml:</p>
<groupId>org.apache.openejb</groupId>
<artifactId>tomee-jaxrs</artifactId>
<version>1.7.1</version>
-</dependency></pre>
+</dependency></code></pre>
</div>
</div>
<div class="paragraph">
@@ -283,9 +283,9 @@ the production system environment.</p>
<p>On a local machine clients can get the remote server port using the
following System property:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>final String port = System.getProperty("server.http.port");</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">final String port = System.getProperty("server.http.port");</code></pre>
</div>
</div>
<div class="paragraph">
@@ -294,9 +294,9 @@ following System property:</p>
<code><tomee.classifier>webprofile</tomee.classifier></code> to
<code><tomee.classifier>plus</tomee.classifier></code></p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><properties>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><properties>
<tomee.version>1.7.1</tomee.version>
<tomee.classifier>webprofile</tomee.classifier>
</properties>
@@ -327,7 +327,7 @@ following System property:</p>
<classifier>${tomee.classifier}</classifier>
<type>zip</type>
</dependency>
-</dependencies></pre>
+</dependencies></code></pre>
</div>
</div>
<div class="paragraph">
@@ -406,9 +406,9 @@ Remote Adapter:</p>
default adapter is the Embedded Adapter, the Remote Adapter will run
with <code>-Ptomee-webprofile-remote</code> specified as a <code>mvn</code> command argument.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><profiles>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><profiles>
<profile>
<id>tomee-embedded</id>
@@ -496,7 +496,7 @@ with <code>-Ptomee-webprofile-remote</co
</dependencies>
</profile>
-</profiles></pre>
+</profiles></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/basics---security.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/basics---security.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/basics---security.html (original)
+++ tomee/site/trunk/content/master/docs/basics---security.html Sun Dec 9 02:54:59 2018
@@ -151,9 +151,9 @@ clients not running in an EJB container,
method call. In this case, the <em>OtherBean</em> instance, will have the same
security as <em>MyBean</em>, including the principal (username), roles, etc.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.ejb.EJB;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.ejb.EJB;
import javax.naming.InitialContext;
@EJB(name = "otherBean", beanInterface = IOtherBean.class)
@@ -164,7 +164,7 @@ public class MyBean
InitialContext context = new InitialContext();
return (IOtherBean) context.lookup("java:comp/env/otherBean");
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/bmpentitycontainer-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/bmpentitycontainer-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/bmpentitycontainer-config.html (original)
+++ tomee/site/trunk/content/master/docs/bmpentitycontainer-config.html Sun Dec 9 02:54:59 2018
@@ -101,11 +101,11 @@
using a declaration like the following. All properties in the element
body are optional.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Container id="myBmpEntityContainer" type="BMP_ENTITY">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Container id="myBmpEntityContainer" type="BMP_ENTITY">
poolSize = 10
-</Container></pre>
+</Container></code></pre>
</div>
</div>
<div class="paragraph">
@@ -115,10 +115,10 @@ VirtualMachine <code>-D</code> propertie
embedding TomEE via the <code>javax.ejb.embeddable.EJBContainer</code> API or
<code>InitialContext</code></p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>myBmpEntityContainer = new://Container?type=BMP_ENTITY
-myBmpEntityContainer.poolSize = 10</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myBmpEntityContainer = new://Container?type=BMP_ENTITY
+myBmpEntityContainer.poolSize = 10</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/bouncy-castle.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/bouncy-castle.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/bouncy-castle.html (original)
+++ tomee/site/trunk/content/master/docs/bouncy-castle.html Sun Dec 9 02:54:59 2018
@@ -137,9 +137,9 @@ directory</p>
<div class="paragraph">
<p>The entry to <code>java.security</code> will look something like the following:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>security.provider.N=org.bouncycastle.jce.provider.BouncyCastleProvider</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">security.provider.N=org.bouncycastle.jce.provider.BouncyCastleProvider</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/built-in-type-converters.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/built-in-type-converters.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/built-in-type-converters.html (original)
+++ tomee/site/trunk/content/master/docs/built-in-type-converters.html Sun Dec 9 02:54:59 2018
@@ -245,9 +245,9 @@ via plain properties in a META-INF/env-e
java.lang.String and it will be converted on the fly to the field/setter
type used by the bean class. For example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>package org.superbiz.foo;
+<pre class="highlight"><code class="language-java" data-lang="java">package org.superbiz.foo;
import java.util.Date;
@@ -256,15 +256,15 @@ public class MyBean {
@Resource
private Date myDate;
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Works with an ejb-jar.xml as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
+<pre class="highlight"><code class="language-xml" data-lang="xml"><ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
metadata-complete="false">
<enterprise-beans>
<session>
@@ -276,15 +276,15 @@ metadata-complete="false">
</env-entry>
</session>
</enterprise-beans>
-</ejb-jar></pre>
+</ejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or with an env-entries.properties file as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>org.superbiz.foo.MyBean/myDate = 2008-04-19</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">org.superbiz.foo.MyBean/myDate = 2008-04-19</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/callbacks.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/callbacks.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/callbacks.html (original)
+++ tomee/site/trunk/content/master/docs/callbacks.html Sun Dec 9 02:54:59 2018
@@ -155,9 +155,9 @@ throws Exception</p>
<div class="sect1">
<h2 id="_stateless">Stateless</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.ejb.Stateless;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.ejb.Stateless;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.interceptor.AroundInvoke;
@@ -180,7 +180,7 @@ public class MyStatelessBean implements
public Object invoke(InvocationContext invocationContext) throws Exception {
return invocationContext.proceed();
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -188,9 +188,9 @@ public class MyStatelessBean implements
<div class="sect1">
<h2 id="_stateful">Stateful</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.ejb.Stateful;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.ejb.Stateful;
import javax.ejb.PostActivate;
import javax.ejb.PrePassivate;
import javax.annotation.PostConstruct;
@@ -225,7 +225,7 @@ public class MyStatefulBean implements
public void passivate(){
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -233,9 +233,9 @@ public class MyStatefulBean implements
<div class="sect1">
<h2 id="_messagedriven">MessageDriven</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.ejb.MessageDriven;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.ejb.MessageDriven;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.interceptor.AroundInvoke;
@@ -258,7 +258,7 @@ public class MyMessageDrivenBean impleme
public Object invoke(InvocationContext invocationContext) throws Exception {
return invocationContext.proceed();
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -266,9 +266,9 @@ public class MyMessageDrivenBean impleme
<div class="sect1">
<h2 id="_interceptor">Interceptor</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.annotation.PostConstruct;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.interceptor.InvocationContext;
import javax.interceptor.AroundInvoke;
@@ -301,7 +301,7 @@ public class MyInterceptor {
public void passivate(InvocationContext invocationContext){
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/changing-jms-implementations.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/changing-jms-implementations.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/changing-jms-implementations.html (original)
+++ tomee/site/trunk/content/master/docs/changing-jms-implementations.html Sun Dec 9 02:54:59 2018
@@ -161,9 +161,9 @@ These values can be overridden in the <c
<p>Let’s say that the following file lives in the jar at
<code>META-INF/org.superbiz/service-jar.xml</code></p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><?xml version="1.0" encoding="UTF-8"?>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><?xml version="1.0" encoding="UTF-8"?>
<ServiceJar>
<ServiceProvider
id="genericra"
@@ -228,7 +228,7 @@ These values can be overridden in the <c
JndiProperties
TopicClassName
</ServiceProvider>
-</ServiceJar></pre>
+</ServiceJar></code></pre>
</div>
</div>
<div class="paragraph">
@@ -243,23 +243,23 @@ several sets of defaults in a <code>serv
"instances" of these things in your <code>tomee.xml</code> or <code>openejb.xml</code> config
file as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="My Generic Adapter" type="GenericJMSRA" provider="org.superbiz:genericra">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="My Generic Adapter" type="GenericJMSRA" provider="org.superbiz:genericra">
AdapterProperty1 PropertyValue1
AdapterProperty2 PropertyValue2
...
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or in properties like so:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>myGenericAdapter = new://Resource?type=GenericJMSRA&provider=org.superbiz:genericra
+<pre class="highlight"><code class="language-properties" data-lang="properties">myGenericAdapter = new://Resource?type=GenericJMSRA&provider=org.superbiz:genericra
myGenericAdapter.AdapterProperty1 = PropertyValue1
-myGenericAdapter.AdapterProperty2 = PropertyValue2</pre>
+myGenericAdapter.AdapterProperty2 = PropertyValue2</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/clients.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/clients.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/clients.html (original)
+++ tomee/site/trunk/content/master/docs/clients.html Sun Dec 9 02:54:59 2018
@@ -95,28 +95,33 @@
<div class="row">
<div class="col-md-12">
- <div class="sect2">
-<h3 id="_local_client_embedded_container">Local Client (embedded container)</h3>
-<div class="literalblock">
+ <div class="sect1">
+<h2 id="_local_client_embedded_container">Local Client (embedded container)</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put("java.naming.factory.initial", "org.apache.openejb.client.LocalInitialContextFactory");
InitialContext ctx = new InitialContext(p);
-MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</pre>
+MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</code></pre>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_local_client_non_default_realm_name">Local Client (non-default realm name)</h3>
+</div>
+<div class="sect1">
+<h2 id="_local_client_non_default_realm_name">Local Client (non-default realm name)</h2>
+<div class="sectionbody">
</div>
-<div class="sect2">
-<h3 id="_login_configuration_file_conf_login_config">Login configuration file (conf/login.config)</h3>
-<div class="literalblock">
+</div>
+<div class="sect1">
+<h2 id="_login_configuration_file_conf_login_config">Login configuration file (conf/login.config)</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>PropertiesLogin {
+<pre class="highlight"><code class="language-java" data-lang="java">PropertiesLogin {
org.apache.openejb.core.security.jaas.PropertiesLoginModule required
Debug=true
UsersFile="users.properties"
@@ -127,29 +132,33 @@ MyApp {
dataSourceName="MyDataSource"
userSelect="SELECT username, password FROM users WHERE username=?"
groupSelect="SELECT username, grp FROM users WHERE username=?";
-};</pre>
+};</code></pre>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_code">Code</h3>
-<div class="literalblock">
+</div>
+<div class="sect1">
+<h2 id="_code">Code</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put("java.naming.factory.initial", "org.apache.openejb.client.LocalInitialContextFactory");
p.put("openejb.authentication.realmName", "MyApp");
InitialContext ctx = new InitialContext(p);
-MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</pre>
+MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</code></pre>
+</div>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_remote_client_openejb_standalone">Remote Client (openejb standalone)</h3>
-<div class="literalblock">
+<div class="sect1">
+<h2 id="_remote_client_openejb_standalone">Remote Client (openejb standalone)</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url", "ejbd://localhost:4201");
// user and pass optional
@@ -158,15 +167,17 @@ p.put("java.naming.security.credentials"
InitialContext ctx = new InitialContext(p);
-MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</pre>
+MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</code></pre>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_remote_client_with_http_openejb_standalone">Remote Client with HTTP (openejb standalone)</h3>
-<div class="literalblock">
+</div>
+<div class="sect1">
+<h2 id="_remote_client_with_http_openejb_standalone">Remote Client with HTTP (openejb standalone)</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url", "http://localhost:4204/ejb");
// user and pass optional
@@ -175,15 +186,17 @@ p.put("java.naming.security.credentials"
InitialContext ctx = new InitialContext(p);
-MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</pre>
+MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</code></pre>
+</div>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_remote_client_with_http_in_tomee">Remote Client with HTTP (in TomEE)</h3>
-<div class="literalblock">
+<div class="sect1">
+<h2 id="_remote_client_with_http_in_tomee">Remote Client with HTTP (in TomEE)</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url", "http://127.0.0.1:8080/tomee/ejb");
// user and pass optional
@@ -192,14 +205,17 @@ p.put("java.naming.security.credentials"
InitialContext ctx = new InitialContext(p);
-MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</pre>
+MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");</code></pre>
</div>
</div>
</div>
-<div class="sect2">
-<h3 id="_remote_client_using_ejb_injection_see_here_ejb_refs">Remote Client using @EJB Injection see here: ejb-refs</h3>
+</div>
+<div class="sect1">
+<h2 id="_remote_client_using_ejb_injection_see_here_ejb_refs">Remote Client using @EJB Injection see here: ejb-refs</h2>
+<div class="sectionbody">
</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/cmpentitycontainer-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/cmpentitycontainer-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/cmpentitycontainer-config.html (original)
+++ tomee/site/trunk/content/master/docs/cmpentitycontainer-config.html Sun Dec 9 02:54:59 2018
@@ -101,11 +101,11 @@
using a declaration like the following. All properties in the element
body are optional.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Container id="myCmpEntityContainer" type="CMP_ENTITY">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Container id="myCmpEntityContainer" type="CMP_ENTITY">
cmpEngineFactory = org.apache.openejb.core.cmp.jpa.JpaCmpEngineFactory
-</Container></pre>
+</Container></code></pre>
</div>
</div>
<div class="paragraph">
@@ -115,10 +115,10 @@ VirtualMachine <code>-D</code> propertie
embedding TomEE via the <code>javax.ejb.embeddable.EJBContainer</code> API or
<code>InitialContext</code></p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>myCmpEntityContainer = new://Container?type=CMP_ENTITY
-myCmpEntityContainer.cmpEngineFactory = org.apache.openejb.core.cmp.jpa.JpaCmpEngineFactory</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myCmpEntityContainer = new://Container?type=CMP_ENTITY
+myCmpEntityContainer.cmpEngineFactory = org.apache.openejb.core.cmp.jpa.JpaCmpEngineFactory</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/common-datasource-configurations.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/common-datasource-configurations.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/common-datasource-configurations.html (original)
+++ tomee/site/trunk/content/master/docs/common-datasource-configurations.html Sun Dec 9 02:54:59 2018
@@ -110,14 +110,14 @@ details on all configuration options for
<p>The drivers are included with OpenEJB 3.0 and HSQLDB is the default
database.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="HSQLDB Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="HSQLDB Database" type="DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:hsqldb
UserName sa
Password
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -125,16 +125,16 @@ database.</p>
<div class="sect1">
<h2 id="_derby_embedded">Derby (Embedded)</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="Derby Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="Derby Database" type="DataSource">
#Embedded Derby example
JdbcDriver org.apache.derby.jdbc.EmbeddedDriver
JdbcUrl jdbc:derby:derbyDB;create=true
UserName admin
Password pass
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -142,9 +142,9 @@ database.</p>
<div class="sect1">
<h2 id="_mysql">MySQL</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="MySQL Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="MySQL Database" type="DataSource">
# MySQL example
#
# This connector will not work until you download the driver at:
@@ -153,7 +153,7 @@ database.</p>
JdbcDriver com.mysql.jdbc.Driver
JdbcUrl jdbc:mysql://localhost/test
UserName test
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -161,9 +161,9 @@ database.</p>
<div class="sect1">
<h2 id="_oracle">Oracle</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="Oracle Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="Oracle Database" type="DataSource">
# Oracle example
#
# This connector will not work until you download the driver at:
@@ -172,7 +172,7 @@ database.</p>
JdbcUrl jdbc:oracle:thin:@localhost:1521:orcl
UserName scott
Password tiger
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -180,9 +180,9 @@ database.</p>
<div class="sect1">
<h2 id="_oraclexa">OracleXA</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="OracleXA Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="OracleXA Database" type="DataSource">
# OracleXA example
#
# This connector will not work until you download the driver at:
@@ -191,7 +191,7 @@ database.</p>
JdbcUrl jdbc:oracle:thin:@localhost:1521:orcl
UserName scott
Password tiger
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -199,9 +199,9 @@ database.</p>
<div class="sect1">
<h2 id="_posgresql">PosgreSQL</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="PostgreSQL Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="PostgreSQL Database" type="DataSource">
# PostgreSQL example
#
# This connector will not work until you download the driver at:
@@ -210,7 +210,7 @@ database.</p>
JdbcUrl jdbc:postgresql://localhost/test
UserName postgres
Password pass
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
</div>
@@ -218,16 +218,16 @@ database.</p>
<div class="sect1">
<h2 id="_instantdb">InstantDB</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="InstantDB Database" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="InstantDB Database" type="DataSource">
# InstantDB example
#
JdbcDriver org.enhydra.instantdb.jdbc.idbDriver
JdbcUrl jdbc:idb:conf/instantdb.properties
UserName Admin
Password pass
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/common-persistenceprovider-properties.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/common-persistenceprovider-properties.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/common-persistenceprovider-properties.html (original)
+++ tomee/site/trunk/content/master/docs/common-persistenceprovider-properties.html Sun Dec 9 02:54:59 2018
@@ -105,22 +105,22 @@ various persistence providers out there.
</div>
</div>
<h1 id="_toplink" class="sect0">TopLink</h1>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><properties>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><properties>
<!--http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html-->
<property name="toplink.ddl-generation" value="drop-and-create-tables"/>
<property name="toplink.logging.level" value="FINEST"/>
<property name="toplink.ddl-generation.output-mode" value="both"/>
<property name="toplink.target-server" value="pl.zsk.samples.ejbservice.OpenEJBServerPlatform"/>
-</properties></pre>
+</properties></code></pre>
</div>
</div>
<h1 id="_openjpa" class="sect0">OpenJPA</h1>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><properties>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><properties>
<!--http://openjpa.apache.org/faq.html-->
<!-- does not create foreign keys, creates schema and deletes content of a database
(deleteTableContents - foreign keys are created twice???), use dropDB instead -->
@@ -130,16 +130,16 @@ various persistence providers out there.
<!--Create foreign keys-->
<property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict"/>
<property name="openjpa.Log" value="DefaultLevel=TRACE,SQL=TRACE" />
-</properties></pre>
+</properties></code></pre>
</div>
</div>
<h1 id="_hibernate" class="sect0">Hibernate</h1>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><properties>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.transaction.manager_lookup_class" value="org.apache.openejb.hibernate.TransactionManagerLookup"/>
-</properties></pre>
+</properties></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/configuration.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/configuration.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/configuration.html (original)
+++ tomee/site/trunk/content/master/docs/configuration.html Sun Dec 9 02:54:59 2018
@@ -148,9 +148,9 @@ OpenEJB saves deployment descriptors - e
<div class="paragraph">
<p>Show a config file with the elements hyperlinked.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><?xml version="1.0"?>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><?xml version="1.0"?>
<openejb>
<Container id="Default CMP Container" ctype="CMP_ENTITY">
Global_TX_Database c:/my/app/conf/postgresql.cmp_global_database.xml
@@ -166,7 +166,7 @@ OpenEJB saves deployment descriptors - e
<TransactionService id="Default Transaction Manager"/>
<Deployments jar="c:/my/app/employee.jar"/>
<Deployments dir="beans/" />
-</openejb></pre>
+</openejb></code></pre>
</div>
</div>
</div>
@@ -227,14 +227,14 @@ openejb.home are added to the classpath.
<div class="paragraph">
<p>A summary of the above in a different notation:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>openejb.home = user.dir (can be set explicitly)
+<pre class="highlight"><code class="language-properties" data-lang="properties">openejb.home = user.dir (can be set explicitly)
openejb.base = openejb.home (can be set explicitly)
openejb.conf = openejb.base/conf/openejb.conf (can be set explicitly)
logging.conf = openejb.base/conf/logging.conf (can be set explicitly)
deployments = paths listed in openejb.conf (relative paths resolved from openejb.base)
-Classpath includes openejb.home/lib and openejb.home/dist</pre>
+Classpath includes openejb.home/lib and openejb.home/dist</code></pre>
</div>
</div>
</div>
@@ -248,9 +248,9 @@ jars by name (abc-ejbs.jar and xyz-ejbs.
<div class="paragraph">
<p>An example layout:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>/usr/local/openejb (openejb.home)
+<pre class="highlight"><code class="language-java" data-lang="java">/usr/local/openejb (openejb.home)
/usr/local/openejb/lib (in classpath)
/usr/local/openejb/dist (in classpath)
/home/jsmith/foo_app (openejb.base)
@@ -258,7 +258,7 @@ jars by name (abc-ejbs.jar and xyz-ejbs.
/home/jsmith/foo_app/conf/logging.conf
/home/jsmith/foo_app/abc-ejbs.jar (Deployment entry in openejb.conf)
/home/jsmith/foo_app/xyz-ejbs.jar (Deployment entry in openejb.conf)
-/home/jsmith/foo_app/logs/</pre>
+/home/jsmith/foo_app/logs/</code></pre>
</div>
</div>
</div>
@@ -271,9 +271,9 @@ explicit paths for the openejb and log4j
<div class="paragraph">
<p>An example layout:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>/usr/local/openejb (openejb.home)
+<pre class="highlight"><code class="language-java" data-lang="java">/usr/local/openejb (openejb.home)
/usr/local/openejb/lib (in classpath)
/usr/local/openejb/dist (in classpath)
/home/jsmith/foo_app (openejb.base)
@@ -281,7 +281,7 @@ explicit paths for the openejb and log4j
/home/jsmith/foo_app/abc-ejbs.jar (Deployment entry in openejb.xml)
/home/jsmith/foo_app/xyz-ejbs.jar (Deployment entry in openejb.xml)
/home/jsmith/foo_app/log4j.conf (log4j.configuration)
-/home/jsmith/foo_app/mylogs/ (logging dir as defined in log4j.conf)</pre>
+/home/jsmith/foo_app/mylogs/ (logging dir as defined in log4j.conf)</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/configuring-containers-in-tests.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/configuring-containers-in-tests.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/configuring-containers-in-tests.html (original)
+++ tomee/site/trunk/content/master/docs/configuring-containers-in-tests.html Sun Dec 9 02:54:59 2018
@@ -102,16 +102,16 @@ useful is to declare a Stateful SessionB
guaranteed to passivate and activate on each call to the bean, allowing
you to test your callbacks behave as you need them to.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
p.put("myStatefulContainer", "new://Container?type=STATEFUL");
p.put("myStatefulContainer.PoolSize", "0");
p.put("myStatefulContainer.BulkPassivate", "1");
-Context context = new InitialContext(p);</pre>
+Context context = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/configuring-datasources-in-tests.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/configuring-datasources-in-tests.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/configuring-datasources-in-tests.html (original)
+++ tomee/site/trunk/content/master/docs/configuring-datasources-in-tests.html Sun Dec 9 02:54:59 2018
@@ -103,9 +103,9 @@
<p>You can configure data sources from within your test case (avoiding the
need for an <code>openejb.xml</code> entirely) like so:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>Properties p = new Properties();
+<pre class="highlight"><code class="language-java" data-lang="java">Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
p.put("myDataSource", "new://Resource?type=DataSource");
@@ -113,7 +113,7 @@ p.put("myDataSource.JdbcDriver", "org.ap
p.put("myDataSource.JdbcUrl", "jdbc:derby:derbyDB;create=true");
p.put("myDataSource.JtaManaged", "true");
-Context context = new InitialContext(p);</pre>
+Context context = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -122,46 +122,52 @@ the same driver. This is possible by def
resource which points to the specific driver files required for the
DataSource:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>p.put("myDataSourceOne", "new://Resource?type=DataSource&classpath=/path/to/driverVersionOne.jar");
+<pre class="highlight"><code class="language-java" data-lang="java">p.put("myDataSourceOne", "new://Resource?type=DataSource&classpath=/path/to/driverVersionOne.jar");
p.put("myDataSourceOne.JdbcDriver", "org.apache.derby.jdbc.EmbeddedDriver");
-p.put("myDataSource.JdbcUrl", "jdbc:derby:myDatabaseOne;create=true");</pre>
+p.put("myDataSource.JdbcUrl", "jdbc:derby:myDatabaseOne;create=true");
+
+p.put("myDataSourceTwo", "new://Resource?type=DataSource&classpath=/path/to/driverVersionTwo.jar");
+p.put("myDataSourceTwo.JdbcDriver", "org.apache.derby.jdbc.EmbeddedDriver");
+p.put("myDataSource.JdbcUrl", "jdbc:derby:myDatabaseTwo;create=true");
+[source,java]</code></pre>
</div>
</div>
<div class="paragraph">
-<p>p.put("myDataSourceTwo", "new://Resource?type=DataSource&classpath=/path/to/driverVersionTwo.jar");
-p.put("myDataSourceTwo.JdbcDriver", "org.apache.derby.jdbc.EmbeddedDriver");
-p.put("myDataSource.JdbcUrl", "jdbc:derby:myDatabaseTwo;create=true");</p>
+<p>This will allow an application to communicate through legacy drivers to
+the same JDBC provider.</p>
</div>
-<div class="literalblock">
-<div class="content">
-<pre>This will allow an application to communicate through legacy drivers to
-the same JDBC provider.
-
-See link:embedded-configuration.html[Embedded Configuration] for further
-details on properties and overrides.
-
-See link:containers-and-resources.html[Containers and Resources] for a
-full list of supported Resource types and their properties.
-
-== Note on <jta-data-source> and <non-jta-data-source>
-
-When configuring DataSources to be used by persistence.xml files, the
-DataSource supplied for `<jta-data-source>` is typically identical to
-the `<non-jta-data-source>`, but with the `JtaManaged` property set
+<div class="paragraph">
+<p>See <a href="embedded-configuration.html">Embedded Configuration</a> for further
+details on properties and overrides.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="containers-and-resources.html">Containers and Resources</a> for a
+full list of supported Resource types and their properties.</p>
+</div>
+<div class="sect1">
+<h2 id="_note_on_jta_data_source_and_non_jta_data_source">Note on <jta-data-source> and <non-jta-data-source></h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>When configuring DataSources to be used by persistence.xml files, the
+DataSource supplied for <code><jta-data-source></code> is typically identical to
+the <code><non-jta-data-source></code>, but with the <code>JtaManaged</code> property set
differently. Keeping with our philosophy to free you up from redundant
configuration, we will happily auto-create a missing jta-data-source or
-non-jta-data-source based upon the supplied DataSource.
-
-In the example above, a new DataSource would be generated as an exact
-copy but with the name "myDataSourceUnmanaged" and its `JtaManaged` flag
-set to `false`. If the supplied DataSource was not `JtaManaged`, then
+non-jta-data-source based upon the supplied DataSource.</p>
+</div>
+<div class="paragraph">
+<p>In the example above, a new DataSource would be generated as an exact
+copy but with the name "myDataSourceUnmanaged" and its <code>JtaManaged</code> flag
+set to <code>false</code>. If the supplied DataSource was not <code>JtaManaged</code>, then
the generated DataSource would be called "myDataSourceJta" and have its
-`JtaManaged` flag set to `true`.
-
-When relying on this functionality it is not necessary to specify the
-name of the generated DataSource in the `persistence.xml` file.</pre>
+<code>JtaManaged</code> flag set to <code>true</code>.</p>
+</div>
+<div class="paragraph">
+<p>When relying on this functionality it is not necessary to specify the
+name of the generated DataSource in the <code>persistence.xml</code> file.</p>
+</div>
</div>
</div>
</div>