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 [11/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/sha...
Modified: tomee/site/trunk/content/master/docs/jmsconnectionfactory-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/jmsconnectionfactory-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/jmsconnectionfactory-config.html (original)
+++ tomee/site/trunk/content/master/docs/jmsconnectionfactory-config.html Sun Dec 9 02:54:59 2018
@@ -101,16 +101,16 @@
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><Resource id="myJmsConnectionFactory" type="javax.jms.ConnectionFactory">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="myJmsConnectionFactory" type="javax.jms.ConnectionFactory">
connectionMaxIdleTime = 15 Minutes
connectionMaxWaitTime = 5 seconds
poolMaxSize = 10
poolMinSize = 0
resourceAdapter = Default JMS Resource Adapter
transactionSupport = xa
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -120,15 +120,15 @@ 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>myJmsConnectionFactory = new://Resource?type=javax.jms.ConnectionFactory
+<pre class="highlight"><code class="language-properties" data-lang="properties">myJmsConnectionFactory = new://Resource?type=javax.jms.ConnectionFactory
myJmsConnectionFactory.connectionMaxIdleTime = 15 Minutes
myJmsConnectionFactory.connectionMaxWaitTime = 5 seconds
myJmsConnectionFactory.poolMaxSize = 10
myJmsConnectionFactory.poolMinSize = 0
myJmsConnectionFactory.resourceAdapter = Default JMS Resource Adapter
-myJmsConnectionFactory.transactionSupport = xa</pre>
+myJmsConnectionFactory.transactionSupport = xa</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/jndi-names.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/jndi-names.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/jndi-names.html (original)
+++ tomee/site/trunk/content/master/docs/jndi-names.html Sun Dec 9 02:54:59 2018
@@ -106,9 +106,9 @@
<div class="sect1">
<h2 id="_default_jndi_name_the_default_jndi_name_is_in_the_following_format">Default JNDI name The default JNDI name is in the following format:</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>{deploymentId}{interfaceType.annotationName}</pre>
+<pre class="highlight"><code class="language-json" data-lang="json">{deploymentId}{interfaceType.annotationName}</code></pre>
</div>
</div>
<div class="paragraph">
@@ -269,10 +269,10 @@ and override that further for a specific
<p>The jndi name format can be set on a server level via a <em>system
property</em>, for example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>$ ./bin/openejb start
--Dopenejb.jndiname.format=\{ejbName}/\{interfaceClass}"</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">$ ./bin/openejb start
+-Dopenejb.jndiname.format=\{ejbName}/\{interfaceClass}"</code></pre>
</div>
</div>
<div class="paragraph">
@@ -289,14 +289,14 @@ InitialContext properties when embedded.
<p>It’s possible to set the openejb.jndiname.format for an ejb-jar jar in a
META-INF/openejb-jar.xml file as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<properties>
openejb.deploymentId.format = {ejbName}
openejb.jndiname.format = {deploymentId}{interfaceType.annotationName}
</properties>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
</div>
@@ -308,49 +308,49 @@ META-INF/openejb-jar.xml file as follows
<p>The following sets the name specifically for the interface
org.superbiz.Foo.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<jndi name="foo" interface="org.superbiz.Foo"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or more generally…​</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<jndi name="foo" interface="Remote"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or more generally still…​</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<jndi name="foo"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>The 'name' attribute can still use templates if it likes, such as:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<jndi name="ejb/{interfaceClass.simpleName}" interface="org.superbiz.Foo"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="sect2">
@@ -373,9 +373,9 @@ intention with these examples is to show
isolate specific interfaces or types of interfaces to gain more specific
control on how they are named.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<jndi name="LocalOne" interface="org.superbiz.LocalOne"/>
<jndi name="LocalTwo" interface="org.superbiz.LocalTwo"/>
@@ -384,15 +384,15 @@ control on how they are named.</p>
<jndi name="FooHome" interface="org.superbiz.FooHome"/>
<jndi name="FooLocalHome" interface="org.superbiz.FooLocalHome"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<!-- applies to LocalOne and LocalTwo -->
<jndi name="{interfaceClass.simpleName}" interface="Local"/>
@@ -406,15 +406,15 @@ control on how they are named.</p>
<!-- applies to FooLocalHome -->
<jndi name="{interfaceClass.simpleName}" interface="LocalHome"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<!-- applies to RemoteOne, RemoteTwo, FooHome, and FooLocalHome -->
<jndi name="{interfaceClass.simpleName}"/>
@@ -423,20 +423,20 @@ control on how they are named.</p>
<jndi name="LocalOne" interface="org.superbiz.LocalOne"/>
<jndi name="LocalTwo" interface="org.superbiz.LocalTwo"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
<div class="paragraph">
<p>or</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar>
<ejb-deployment ejb-name="FooBean">
<!-- applies to LocalOne, LocalTwo, RemoteOne, RemoteTwo, FooHome, and FooLocalHome -->
<jndi name="{interfaceClass.simpleName}"/>
</ejb-deployment>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
</div>
@@ -446,8 +446,9 @@ control on how they are named.</p>
<div class="paragraph">
<p><em>You are responsible for ensuring the names don’t conflict.</em></p>
</div>
-<div class="sect2">
-<h3 id="_conservative_settings">Conservative settings</h3>
+<div class="sect1">
+<h2 id="_conservative_settings">Conservative settings</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>A very conservative setting such as</p>
</div>
@@ -468,7 +469,6 @@ in<br>
<p>The above two settings would work if you the interface wasn’t shared by
other beans.</p>
</div>
-</div>
<div class="sect2">
<h3 id="_pragmatic_settings">Pragmatic settings</h3>
<div class="paragraph">
@@ -578,6 +578,8 @@ RemoteException \{}' method of Interface
we create the proxy dedicated to InterfaceB.</p>
</div>
</div>
+</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/jpa-concepts.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/jpa-concepts.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/jpa-concepts.html (original)
+++ tomee/site/trunk/content/master/docs/jpa-concepts.html Sun Dec 9 02:54:59 2018
@@ -282,9 +282,9 @@ Detached object.</p>
<p>Servlets and EJBs can use RESOURCE_LOCAL persistence units through the
EntityManagerFactory as follows:</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" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<!-- Tutorial "unit" -->
@@ -293,15 +293,15 @@ EntityManagerFactory as follows:</p>
<class>org.superbiz.jpa.Account</class>
</persistence-unit>
-</persistence></pre>
+</persistence></code></pre>
</div>
</div>
<div class="paragraph">
<p>And referenced as follows</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import javax.persistence.EntityManagerFactory;
+<pre class="highlight"><code class="language-java" data-lang="java">import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceUnit;
@@ -327,7 +327,7 @@ public class MyEjbOrServlet ... {
}
...
-}</pre>
+}</code></pre>
</div>
</div>
<div class="sect1">
@@ -336,9 +336,9 @@ public class MyEjbOrServlet ... {
<div class="paragraph">
<p>EJBs can use JTA persistence units through the EntityManager as follows:</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" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<!-- Tutorial "unit" -->
@@ -348,15 +348,15 @@ public class MyEjbOrServlet ... {
<class>org.superbiz.jpa.Account</class>
</persistence-unit>
-</persistence></pre>
+</persistence></code></pre>
</div>
</div>
<div class="paragraph">
<p>And referenced as follows</p>
</div>
-<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.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
@@ -377,7 +377,7 @@ public class MyEjb implements MyEjbInter
account.setBalance(5000);
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/local-client-injection.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/local-client-injection.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/local-client-injection.html (original)
+++ tomee/site/trunk/content/master/docs/local-client-injection.html Sun Dec 9 02:54:59 2018
@@ -145,9 +145,9 @@ wishes.</p>
LocalInitialContextFactory and calling <em>bind("inject", instance)</em>
passing in the instantiated local client object:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@LocalClient
+<pre class="highlight"><code class="language-java" data-lang="java">@LocalClient
public class MoviesTest extends TestCase {
@EJB
@@ -167,7 +167,7 @@ public class MoviesTest extends TestCase
}
//... other test methods
-}</pre>
+}</code></pre>
</div>
</div>
<h1 id="_discovery" class="sect0">Discovery</h1>
Modified: tomee/site/trunk/content/master/docs/lookup-of-other-ejbs-example.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/lookup-of-other-ejbs-example.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/lookup-of-other-ejbs-example.html (original)
+++ tomee/site/trunk/content/master/docs/lookup-of-other-ejbs-example.html Sun Dec 9 02:54:59 2018
@@ -238,15 +238,15 @@ of the openejb:download.html[examples zi
<div class="paragraph">
<p>Which should create output like the following.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>-------------------------------------------------------
+<pre class="highlight"><code class="language-java" data-lang="java">-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.superbiz.ejblookup.EjbDependencyTest
Apache OpenEJB 3.1.5-SNAPSHOT build: 20101129-09:51
http://tomee.apache.org/
-INFO - openejb.home =</pre>
+INFO - openejb.home =</code></pre>
</div>
</div>
<div class="paragraph">
@@ -275,11 +275,11 @@ container=Default Stateless Container) I
Application(path=classpath.ear) Tests run: 2, Failures: 0, Errors: 0,
Skipped: 0, Time elapsed: 1.244 sec</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>Results :
+<pre class="highlight"><code class="language-properties" data-lang="properties">Results :
-Tests run: 2, Failures: 0, Errors: 0, Skipped: 0</pre>
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/managedcontainer-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/managedcontainer-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/managedcontainer-config.html (original)
+++ tomee/site/trunk/content/master/docs/managedcontainer-config.html Sun Dec 9 02:54:59 2018
@@ -101,10 +101,10 @@
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="myManagedContainer" type="MANAGED">
-</Container></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Container id="myManagedContainer" type="MANAGED">
+</Container></code></pre>
</div>
</div>
<div class="paragraph">
@@ -113,9 +113,9 @@ body are optional.</p>
<code>-D</code> properties. The properties can also be used when 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>myManagedContainer = new://Container?type=MANAGED</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myManagedContainer = new://Container?type=MANAGED</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/manual-installation.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/manual-installation.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/manual-installation.html (original)
+++ tomee/site/trunk/content/master/docs/manual-installation.html Sun Dec 9 02:54:59 2018
@@ -133,9 +133,11 @@ script</p>
</li>
</ol>
</div>
-<div class="paragraph">
-<p>##Install openejb.war</p>
</div>
+</div>
+<div class="sect1">
+<h2 id="_install_openejb_war">Install openejb.war</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Once Tomcat has been <a href="tomcat-installation.html">installed</a> , the
OpenEJB plugin for Tomcat can be installed. The war can be obtained from
@@ -173,12 +175,12 @@ undo, so follow the steps closely.</p>
loader, so the openejb-loader jar must be copied into the Tomcat lib
directory.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> C:\apache-tomcat-6.0.14>copy webapps\openejb\lib\openejb-loader-3.0.0-SNAPSHOT.jar lib\openejb-loader.jar
+<pre class="highlight"><code class="language-java" data-lang="java"> C:\apache-tomcat-6.0.14>copy webapps\openejb\lib\openejb-loader-3.0.0-SNAPSHOT.jar lib\openejb-loader.jar
1 file(s) copied.
- apache-tomcat-6.0.14$ cp webapps/openejb/lib/openejb-loader-*.jar lib/openejb-loader.jar</pre>
+ apache-tomcat-6.0.14$ cp webapps/openejb/lib/openejb-loader-*.jar lib/openejb-loader.jar</code></pre>
</div>
</div>
<div class="paragraph">
@@ -189,9 +191,9 @@ your conf/server.xml file to load the Op
<div class="paragraph">
<p>The snippet is shown below</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><!-- Note: A "Server" is not itself a "Container", so you may not
+<pre class="highlight"><code class="language-xml" data-lang="xml"><!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this
level.
Documentation at /docs/config/server.html
@@ -204,7 +206,7 @@ className="org.apache.openejb.loader.Ope
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener
-className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /></pre>
+className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /></code></pre>
</div>
</div>
</div>
@@ -236,9 +238,9 @@ process.</p>
<p>Simply, add the snippet marked below in bin/catalina.bat (Windows) or
bin/catalina.sh (Unix) file to enable the OpenEJB javaagent:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuli
+<pre class="highlight"><code class="language-properties" data-lang="properties">if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuli
set JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
@@ -274,12 +276,16 @@ fi
JAVA_OPTS=""-javaagent:$CATALINA_BASE/lib/openejb-javaagent.jar"
$JAVA_OPTS"
fi
-#End of Snippet to add</pre>
+#End of Snippet to add</code></pre>
</div>
</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_note_the_example_above_is_an_excerpt_from_the_middle_of_the">Note: The example above is an excerpt from the middle of the</h2>
+<div class="sectionbody">
<div class="paragraph">
-<p>##Note: The example above is an excerpt from the middle of the
-bin/catalina.sh file. Search for the this section and add the snippet
+<p>bin/catalina.sh file. Search for the this section and add the snippet
shown</p>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/maven.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/maven.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/maven.html (original)
+++ tomee/site/trunk/content/master/docs/maven.html Sun Dec 9 02:54:59 2018
@@ -141,9 +141,9 @@ link:[<a href="http://svn.apache.org/rep
<p>Use <a href="http://subversion.apache.org/">Subversion</a> to checkout the example
sources from a console like so:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>svn co http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/[example]</pre>
+<pre class="highlight"><code class="language-bash" data-lang="bash">svn co http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/[example]</code></pre>
</div>
</div>
<div class="paragraph">
@@ -153,9 +153,9 @@ sources from a console like so:</p>
<p>If you want to use the latest snapshot locate the __ section in your
pom.xml and ensure the following repository exists:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><repositories>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><repositories>
<repository>
<id>apache-m2-snapshot</id>
<name>Apache M2 Snapshot Repository</name>
@@ -167,7 +167,7 @@ pom.xml and ensure the following reposit
<enabled>true</enabled>
</snapshots>
</repository>
-</repositories></pre>
+</repositories></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/maven/index.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/maven/index.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/maven/index.html (original)
+++ tomee/site/trunk/content/master/docs/maven/index.html Sun Dec 9 02:54:59 2018
@@ -95,7 +95,9 @@
<div class="row">
<div class="col-md-12">
- <div class="paragraph">
+ <div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
<p>Inspired by the Jetty Maven Plugin, the TomEE Maven Plugin is a
feature-rich plugin that allows for:</p>
</div>
@@ -116,9 +118,9 @@ feature-rich plugin that allows for:</p>
<p>Simply add the following to the , and optionally the ), section of your
<code>pom.xml</code></p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><plugins>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><plugins>
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
@@ -128,12 +130,14 @@ feature-rich plugin that allows for:</p>
<tomeeClassifier>plus</tomeeClassifier>
</configuration>
</plugin>
-</plugins></pre>
+</plugins></code></pre>
+</div>
</div>
</div>
-<div class="paragraph">
-<p>###Plugin Goals</p>
</div>
+<div class="sect1">
+<h2 id="_plugin_goals">Plugin Goals</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Goal</p>
</div>
@@ -256,9 +260,9 @@ with the specified prefix</p>
you can use it in a pom project to setup a TomEE install, add libraries,
deploy apps then run the server.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> <plugin>
+<pre class="highlight"><code class="language-xml" data-lang="xml"> <plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.7.1</version>
@@ -285,15 +289,15 @@ deploy apps then run the server.</p>
<lib>remove:openjpa-</lib>
</libs>
</configuration>
- </plugin></pre>
+ </plugin></code></pre>
</div>
</div>
<div class="paragraph">
<p>###Auto Reloading Example</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><plugin>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.7.1</version>
@@ -305,7 +309,7 @@ deploy apps then run the server.</p>
</synchronization>
<reloadOnUpdate>true</reloadOnUpdate>
</configuration>
-</plugin></pre>
+</plugin></code></pre>
</div>
</div>
<div class="paragraph">
@@ -340,6 +344,8 @@ deploy apps then run the server.</p>
<p>reloadOnUpdate means to reload the entire context (webapp). This means
undeploying/redeploying the application.</p>
</div>
+</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/messagedrivencontainer-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/messagedrivencontainer-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/messagedrivencontainer-config.html (original)
+++ tomee/site/trunk/content/master/docs/messagedrivencontainer-config.html Sun Dec 9 02:54:59 2018
@@ -101,14 +101,14 @@
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="myMessageDrivenContainer" type="MESSAGE">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Container id="myMessageDrivenContainer" type="MESSAGE">
activationSpecClass = org.apache.activemq.ra.ActiveMQActivationSpec
instanceLimit = 10
messageListenerInterface = javax.jms.MessageListener
resourceAdapter = Default JMS Resource Adapter
-</Container></pre>
+</Container></code></pre>
</div>
</div>
<div class="paragraph">
@@ -118,13 +118,13 @@ 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>myMessageDrivenContainer = new://Container?type=MESSAGE
+<pre class="highlight"><code class="language-properties" data-lang="properties">myMessageDrivenContainer = new://Container?type=MESSAGE
myMessageDrivenContainer.activationSpecClass = org.apache.activemq.ra.ActiveMQActivationSpec
myMessageDrivenContainer.instanceLimit = 10
myMessageDrivenContainer.messageListenerInterface = javax.jms.MessageListener
-myMessageDrivenContainer.resourceAdapter = Default JMS Resource Adapter</pre>
+myMessageDrivenContainer.resourceAdapter = Default JMS Resource Adapter</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/multicast-discovery.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/multicast-discovery.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/multicast-discovery.html (original)
+++ tomee/site/trunk/content/master/docs/multicast-discovery.html Sun Dec 9 02:54:59 2018
@@ -124,13 +124,13 @@ going to do a better job at ensuring rel
<p>When you boot the server there should be a <code>conf/multicast.properties</code>
file containing:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>server = org.apache.openejb.server.discovery.MulticastDiscoveryAgent
+<pre class="highlight"><code class="language-properties" data-lang="properties">server = org.apache.openejb.server.discovery.MulticastDiscoveryAgent
bind = 239.255.2.3
port = 6142
disabled = true
-group = default</pre>
+group = default</code></pre>
</div>
</div>
<div class="paragraph">
@@ -156,13 +156,13 @@ A special <code>multicast://</code> URL
properties to signify that multicast should be used to seed the
connection process. Such as:</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "multicast://239.255.2.3:6142?group=default");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -191,12 +191,12 @@ servers. Servers can use multicast to di
are still free to connect to servers in the network using the server’s
TCP address.</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "ejbd://192.168.1.30:4201");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/multiple-business-interface-hazzards.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/multiple-business-interface-hazzards.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/multiple-business-interface-hazzards.html (original)
+++ tomee/site/trunk/content/master/docs/multiple-business-interface-hazzards.html Sun Dec 9 02:54:59 2018
@@ -103,9 +103,9 @@ some very nasty side effects happen, nam
throw any checked exceptions that are not in the throws clause of both
methods.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import junit.framework.TestCase;
+<pre class="highlight"><code class="language-java" data-lang="java">import junit.framework.TestCase;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
@@ -118,25 +118,25 @@ public class ExceptionTest extends TestC
public void test() throws Exception {
ClassLoader classLoader = this.getClass().getClassLoader();
- Class[]</pre>
+ Class[]</code></pre>
</div>
</div>
<div class="paragraph">
<p>interfaces = new Class[]\{One.class, Two.class};</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> InvocationHandler h = new TestInvocationHandler();
+<pre class="highlight"><code class="language-java" data-lang="java"> InvocationHandler h = new TestInvocationHandler();
- Object proxy =</pre>
+ Object proxy =</code></pre>
</div>
</div>
<div class="paragraph">
<p>java.lang.reflect.Proxy.newProxyInstance(classLoader, interfaces, h);</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> One one = (One) proxy;
+<pre class="highlight"><code class="language-java" data-lang="java"> One one = (One) proxy;
try {
one.run(new CommonException());
@@ -154,29 +154,29 @@ public class ExceptionTest extends TestC
} catch (OneException e) {
} catch(UndeclaredThrowableException u) {
Throwable t = u.getCause();
- fail("Undeclared: "+t); // This will always be the code that</pre>
+ fail("Undeclared: "+t); // This will always be the code that</code></pre>
</div>
</div>
<div class="paragraph">
<p>executes } catch(Throwable t)\{ fail("Caught: "+t); }</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> Two two = (Two) proxy;
+<pre class="highlight"><code class="language-java" data-lang="java"> Two two = (Two) proxy;
try {
two.run(new CommonException());
} catch (TwoException e) {
} catch(UndeclaredThrowableException u) {
Throwable t = u.getCause();
- fail("Undeclared: "+t); // This will always be the code that</pre>
+ fail("Undeclared: "+t); // This will always be the code that</code></pre>
</div>
</div>
<div class="paragraph">
<p>executes } catch(Throwable t)\{ fail("Caught: "+t); }</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> }
+<pre class="highlight"><code class="language-java" data-lang="java"> }
public static class CommonException extends Exception {
public CommonException() {
@@ -201,7 +201,7 @@ public class ExceptionTest extends TestC
}
}
- private static class TestInvocationHandler implements InvocationHandler</pre>
+ private static class TestInvocationHandler implements InvocationHandler</code></pre>
</div>
</div>
<div class="paragraph">
@@ -216,9 +216,9 @@ those two interfaces declare the <em>sam
return types</em> the VM proxy code will refuse to create a proxy at all.
Take this code example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import junit.framework.TestCase;
+<pre class="highlight"><code class="language-java" data-lang="java">import junit.framework.TestCase;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
@@ -230,25 +230,25 @@ public class ReturnTest extends TestCase
public void test() throws Exception {
ClassLoader classLoader = this.getClass().getClassLoader();
- Class[]</pre>
+ Class[]</code></pre>
</div>
</div>
<div class="paragraph">
<p>interfaces = new Class[]\{ReturnTest.One.class, ReturnTest.Two.class};</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> InvocationHandler h = new ReturnTest.TestInvocationHandler();
+<pre class="highlight"><code class="language-java" data-lang="java"> InvocationHandler h = new ReturnTest.TestInvocationHandler();
- Object proxy =</pre>
+ Object proxy =</code></pre>
</div>
</div>
<div class="paragraph">
<p>java.lang.reflect.Proxy.newProxyInstance(classLoader, interfaces, h);</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> One one = (One) proxy;
+<pre class="highlight"><code class="language-java" data-lang="java"> One one = (One) proxy;
try {
Object object = one.run(new ThingOne());
} catch (Throwable t) {
@@ -278,7 +278,7 @@ public class ReturnTest extends TestCase
public static class ThingTwo {
}
- private static class TestInvocationHandler implements InvocationHandler</pre>
+ private static class TestInvocationHandler implements InvocationHandler</code></pre>
</div>
</div>
<div class="paragraph">
@@ -288,9 +288,9 @@ throws Throwable \{ return args[0] ; } }
<div class="paragraph">
<p>Running this code will result in the following exception:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>java.lang.IllegalArgumentException: methods with same signature</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">java.lang.IllegalArgumentException: methods with same signature</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/multipoint-discovery.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/multipoint-discovery.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/multipoint-discovery.html (original)
+++ tomee/site/trunk/content/master/docs/multipoint-discovery.html Sun Dec 9 02:54:59 2018
@@ -135,13 +135,13 @@ maintained list.</p>
<p>In the server this list can be specified via the
<code>conf/multipoint.properties</code> file like so:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>server = org.apache.openejb.server.discovery.MultipointDiscoveryAgent
+<pre class="highlight"><code class="language-properties" data-lang="properties">server = org.apache.openejb.server.discovery.MultipointDiscoveryAgent
bind = 127.0.0.1
port = 4212
disabled = false
-initialServers = 192.168.1.20:4212, 192.168.1.30:4212, 192.168.1.40:4212</pre>
+initialServers = 192.168.1.20:4212, 192.168.1.30:4212, 192.168.1.40:4212</code></pre>
</div>
</div>
<div class="paragraph">
@@ -163,12 +163,12 @@ participate directly in multipoint commu
the multipoint port. The server list is simply a list of the regular
<code>ejbd://</code> urls that a client normally uses to connect to a server.</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "failover:ejbd://192.168.1.20:4201,ejbd://192.168.1.30:4201");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -176,12 +176,12 @@ InitialContext remoteContext = new Initi
need to be configured to participate. A client can connect as usual to
the server.</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "ejbd://192.168.1.20:4201");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/multipoint-recommendations.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/multipoint-recommendations.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/multipoint-recommendations.html (original)
+++ tomee/site/trunk/content/master/docs/multipoint-recommendations.html Sun Dec 9 02:54:59 2018
@@ -389,14 +389,14 @@ line or via system properties. So it is
<div class="paragraph">
<p>A bash example might look something like:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>!/bin/bash
+<pre class="highlight"><code class="language-java" data-lang="java">!/bin/bash
OPENEJB_HOME=/opt/openejb-3.1.3
INITIAL_LIST=$(cat /some/shared/directory/our_initial_servers.txt)
-$OPENEJB_HOME/bin/openejb start -Dmultipoint.initialServers=$INITIAL_LIST</pre>
+$OPENEJB_HOME/bin/openejb start -Dmultipoint.initialServers=$INITIAL_LIST</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/multipulse-discovery.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/multipulse-discovery.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/multipulse-discovery.html (original)
+++ tomee/site/trunk/content/master/docs/multipulse-discovery.html Sun Dec 9 02:54:59 2018
@@ -116,13 +116,13 @@ server can be configured to send multica
<p>After you boot the server for the first time the default configuration
will create the file <code>conf/conf.d/multipulse.properties</code> containing:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>server = org.apache.openejb.server.discovery.MulticastPulseAgent
+<pre class="highlight"><code class="language-properties" data-lang="properties">server = org.apache.openejb.server.discovery.MulticastPulseAgent
bind = 239.255.2.3
port = 6142
disabled = true
-group = default</pre>
+group = default</code></pre>
</div>
</div>
<div class="paragraph">
@@ -148,14 +148,14 @@ for discovery. Edit the <code>ejbd.prope
services such as http, etc.) and ensure that the <code>discovery</code> option is
set to a value that remote clients will be able to resolve.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>server = org.apache.openejb.server.ejbd.EjbServer
+<pre class="highlight"><code class="language-properties" data-lang="properties">server = org.apache.openejb.server.ejbd.EjbServer
bind = 0.0.0.0
port = 4201
disabled = false
threads = 20
-discovery = ejb:ejbd://{bind}:{port}</pre>
+discovery = ejb:ejbd://{bind}:{port}</code></pre>
</div>
</div>
<div class="admonitionblock note">
@@ -189,12 +189,12 @@ A special <code>multipulse://</code> URL
properties to signify that multipulse should be used to seed the
connection process. Such as:</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "multipulse://239.255.2.3:6142?group=default&timeout=250");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
@@ -223,12 +223,12 @@ servers. Servers can use multicast to di
are still free to connect to servers in the network using the server’s
TCP address.</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.client.RemoteInitialContextFactory");
p.put(Context.PROVIDER_URL, "ejbd://192.168.1.30:4201");
-InitialContext remoteContext = new InitialContext(p);</pre>
+InitialContext remoteContext = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/new-in-openejb-3.0.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/new-in-openejb-3.0.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/new-in-openejb-3.0.html (original)
+++ tomee/site/trunk/content/master/docs/new-in-openejb-3.0.html Sun Dec 9 02:54:59 2018
@@ -178,9 +178,9 @@ a JavaBeans PropertyEditor. We include s
already such as Date, InetAddress, Class, File, URL, URI, Map, List and
more.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>import java.net.URI;
+<pre class="highlight"><code class="language-java" data-lang="java">import java.net.URI;
import java.io.File;
import java.util.Date;
@@ -189,7 +189,7 @@ public class MyBean {
@Resource URI blog;
@Resource Date birthday;
@Resource File homeDirectory;
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -217,11 +217,11 @@ things that need injection that are not
via a properties file and skip the need for an ejb-jar.xml and it’s 5
lines per property madness.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>blog = http://acme.org/myblog
+<pre class="highlight"><code class="language-properties" data-lang="properties">blog = http://acme.org/myblog
birthday = locale=en_US style=MEDIUM Mar 1, 1954
-homeDirectory = /home/esmith/</pre>
+homeDirectory = /home/esmith/</code></pre>
</div>
</div>
</div>
@@ -297,9 +297,9 @@ Embedding <mark> Tomcat 6 Support </mark
<p>If you want to make business local interfaces remotable, you can set
this property:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre> openejb.remotable.businessLocals=true</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties"> openejb.remotable.businessLocals=true</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/openejb-binaries.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/openejb-binaries.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/openejb-binaries.html (original)
+++ tomee/site/trunk/content/master/docs/openejb-binaries.html Sun Dec 9 02:54:59 2018
@@ -100,9 +100,9 @@
the Apache Nexus repo. This works for snapshots or staging final
binaries.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><settings>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><settings>
<servers>
<server>
<id>apache.snapshots.https</id>
@@ -115,15 +115,15 @@ binaries.</p>
<password>yourapachepass</password>
</server>
</servers>
-</settings></pre>
+</settings></code></pre>
</div>
</div>
<div class="paragraph">
<p>Then publish via:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>$ mvn clean deploy</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">$ mvn clean deploy</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/openejb-eclipse-plugin.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/openejb-eclipse-plugin.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/openejb-eclipse-plugin.html (original)
+++ tomee/site/trunk/content/master/docs/openejb-eclipse-plugin.html Sun Dec 9 02:54:59 2018
@@ -96,8 +96,9 @@
<div class="col-md-12">
<h1 id="_openejb_eclipse_plugin" class="sect0">OpenEJB Eclipse Plugin</h1>
-<div class="sect2">
-<h3 id="_overview">Overview</h3>
+<div class="sect1">
+<h2 id="_overview">Overview</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>The OpenEJB plugin for Eclipse provides the ability to run an OpenEJB
standalone server and deploy projects directly from within the IDE,
@@ -114,6 +115,7 @@ add the corresponding EJB 3 annotations
OpenEJB server</a></p>
</div>
</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/openejb-jsr-107-integration.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/openejb-jsr-107-integration.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/openejb-jsr-107-integration.html (original)
+++ tomee/site/trunk/content/master/docs/openejb-jsr-107-integration.html Sun Dec 9 02:54:59 2018
@@ -100,16 +100,19 @@
<p>This page is for the collaboration for those involved with the
integration of JSR-107 into OpenEJB.</p>
</div>
-<div class="sect2">
-<h3 id="_overview">Overview</h3>
+<div class="sect1">
+<h2 id="_overview">Overview</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>The idea here is to add a caching layer to OpenEJB. The overall
objective is to improve performance in OpenEJB where applicable through
caching EJBs.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_status">Status</h3>
+</div>
+<div class="sect1">
+<h2 id="_status">Status</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>Dain and myself (Jeremy) have deciphered the JSR-107 spec and how I am
working on the first crude integration of JCACHE into OpenEJB. Anyone
@@ -117,6 +120,7 @@ interested in helping or providing any f
contact me via the developer mailing list.</p>
</div>
</div>
+</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/openejb.xml.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/openejb.xml.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/openejb.xml.html (original)
+++ tomee/site/trunk/content/master/docs/openejb.xml.html Sun Dec 9 02:54:59 2018
@@ -106,22 +106,22 @@ and its services such as transaction, se
<p>The format is a mix of xml and properties inspired by the format of the
httpd configuration file. Basically:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><tag id="">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><tag id="">
...properties...
-</tag></pre>
+</tag></code></pre>
</div>
</div>
<div class="paragraph">
<p>Such as:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="MyDataSource" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="MyDataSource" type="DataSource">
username foo
password bar
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -129,12 +129,12 @@ httpd configuration file. Basically:</p>
any java properties file (along with semi-colon). So the above is
equivalent to:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="MyDataSource" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="MyDataSource" type="DataSource">
username = foo
password = bar
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/openjpa.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/openjpa.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/openjpa.html (original)
+++ tomee/site/trunk/content/master/docs/openjpa.html Sun Dec 9 02:54:59 2018
@@ -103,9 +103,9 @@
<div class="paragraph">
<p>An example of working <code>persistence.xml</code> for OpenJPA:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="movie-unit">
<jta-data-source>movieDatabase</jta-data-source>
@@ -116,16 +116,16 @@
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
</properties>
</persistence-unit>
-</persistence></pre>
+</persistence></code></pre>
</div>
</div>
<div class="paragraph">
<p>Where the datasources above are configured in your openejb.xml as
follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><Resource id="movieDatabase" type="DataSource">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="movieDatabase" type="DataSource">
JdbcDriver = org.hsqldb.jdbcDriver
JdbcUrl = jdbc:hsqldb:mem:moviedb
</Resource>
@@ -134,22 +134,22 @@ follows:</p>
JdbcDriver = org.hsqldb.jdbcDriver
JdbcUrl = jdbc:hsqldb:mem:moviedb
JtaManaged = false
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
<p>Or in properties as follows:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>p.put("movieDatabase", "new://Resource?type=DataSource");
+<pre class="highlight"><code class="language-java" data-lang="java">p.put("movieDatabase", "new://Resource?type=DataSource");
p.put("movieDatabase.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("movieDatabase.JdbcUrl", "jdbc:hsqldb:mem:moviedb");
p.put("movieDatabaseUnmanaged", "new://Resource?type=DataSource");
p.put("movieDatabaseUnmanaged.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("movieDatabaseUnmanaged.JdbcUrl", "jdbc:hsqldb:mem:moviedb");
-p.put("movieDatabaseUnmanaged.JtaManaged", "false");</pre>
+p.put("movieDatabaseUnmanaged.JtaManaged", "false");</code></pre>
</div>
</div>
</div>
@@ -168,9 +168,9 @@ objects. If you add the <em>openjpa.jdbc
shown below OpenJPA will auto-create all your tables, all your primary
keys and all foreign keys exactly to match your objects.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="movie-unit">
<!-- your other stuff -->
@@ -179,7 +179,7 @@ keys and all foreign keys exactly to mat
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
</properties>
</persistence-unit>
-</persistence></pre>
+</persistence></code></pre>
</div>
</div>
</div>
@@ -201,31 +201,31 @@ keys and all foreign keys exactly to mat
<div class="paragraph">
<p>Using a EXTENDED persistence context …​</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@PersistenceContext(unitName = "movie-unit", type = PersistenceContextType.EXTENDED)
-EntityManager entityManager;</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">@PersistenceContext(unitName = "movie-unit", type = PersistenceContextType.EXTENDED)
+EntityManager entityManager;</code></pre>
</div>
</div>
<div class="paragraph">
<p>on a persistence unit setup as RESOURCE_LOCAL …​</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence-unit name="movie-unit" transaction-type="RESOURCE_LOCAL">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence-unit name="movie-unit" transaction-type="RESOURCE_LOCAL">
...
-</persistence-unit></pre>
+</persistence-unit></code></pre>
</div>
</div>
<div class="paragraph">
<p>inside of a transaction.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>@TransactionAttribute(TransactionAttributeType.REQUIRED)
+<pre class="highlight"><code class="language-java" data-lang="java">@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void addMovie(Movie movie) throws Exception {
entityManager.persist(movie);
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/orb-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/orb-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/orb-config.html (original)
+++ tomee/site/trunk/content/master/docs/orb-config.html Sun Dec 9 02:54:59 2018
@@ -100,10 +100,10 @@
or in a <code>WEB-INF/resources.xml</code> file 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><Resource id="myORB" type="org.omg.CORBA.ORB">
-</Resource></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="myORB" type="org.omg.CORBA.ORB">
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -112,9 +112,9 @@ following. All properties in the element
<code>-D</code> properties. The properties can also be used when 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>myORB = new://Resource?type=org.omg.CORBA.ORB</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myORB = new://Resource?type=org.omg.CORBA.ORB</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/persistence-context.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/persistence-context.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/persistence-context.html (original)
+++ tomee/site/trunk/content/master/docs/persistence-context.html Sun Dec 9 02:54:59 2018
@@ -100,9 +100,9 @@
<p>Both lookup and injection of an EntityManager can be configured via the
<code>@PersistenceContext</code> annotation.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>package org.superbiz;
+<pre class="highlight"><code class="language-java" data-lang="java">package org.superbiz;
import javax.persistence.PersistenceContext;
import javax.persistence.EntityManager;
@@ -124,7 +124,7 @@ public class MyBean implements MyInterfa
EntityManager fooEntityManager = (EntityManager) context.lookup("java:comp/env/myFooEntityManager");
EntityManager barEntityManager = (EntityManager) context.lookup("java:comp/env/org.superbiz.MyBean/myBarEntityManager");
}
-}</pre>
+}</code></pre>
</div>
</div>
<h1 id="_via_xml" class="sect0">Via xml</h1>
@@ -132,9 +132,9 @@ public class MyBean implements MyInterfa
<p>The above @PersistenceContext annotation usage is 100% equivalent to the
following xml.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence-context-ref>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence-context-ref>
<persistence-context-ref-name>myFooEntityManager</persistence-context-ref-name>
<persistence-unit-name>foo-unit</persistence-unit-name>
<persistence-context-type>Transaction</persistence-context-type>
@@ -148,7 +148,7 @@ following xml.</p>
<injection-target-class>org.superbiz.calculator.MyBean</injection-target-class>
<injection-target-name>myBarEntityManager</injection-target-name>
</injection-target>
-</persistence-context-ref></pre>
+</persistence-context-ref></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/persistence-unit-ref.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/persistence-unit-ref.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/persistence-unit-ref.html (original)
+++ tomee/site/trunk/content/master/docs/persistence-unit-ref.html Sun Dec 9 02:54:59 2018
@@ -109,9 +109,9 @@ lookup and injection.</p>
<div class="sect1">
<h2 id="_via_annotation">Via annotation</h2>
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>package org.superbiz;
+<pre class="highlight"><code class="language-java" data-lang="java">package org.superbiz;
import javax.persistence.PersistenceUnit;
import javax.persistence.EntityManagerFactory;
@@ -131,7 +131,7 @@ public class MyBean implements MyInterfa
InitialContext unit = new InitialContext();
EntityManagerFactory barEntityManagerFactory = (EntityManagerFactory) context.lookup("java:comp/env/org.superbiz.MyBean/myBarEntityManagerFactory");
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -143,9 +143,9 @@ public class MyBean implements MyInterfa
<p>The above @PersistenceUnit annotation usage is 100% equivalent to the
following xml.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence-unit-ref>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence-unit-ref>
<persistence-unit-ref-name>org.superbiz.calculator.MyBean/myBarEntityManagerFactory</persistence-unit-ref-name>
<persistence-unit-name>bar-unit</persistence-unit-name>
<persistence-unit-type>Transaction</persistence-unit-type>
@@ -153,7 +153,7 @@ following xml.</p>
<injection-target-class>org.superbiz.calculator.MyBean</injection-target-class>
<injection-target-name>myBarEntityManagerFactory</injection-target-name>
</injection-target>
-</persistence-unit-ref></pre>
+</persistence-unit-ref></code></pre>
</div>
</div>
</div>
@@ -163,9 +163,9 @@ following xml.</p>
<div class="sectionbody">
<div class="sect2">
<h3 id="_via_annotation_2">Via annotation</h3>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>package org.superbiz;
+<pre class="highlight"><code class="language-java" data-lang="java">package org.superbiz;
import javax.persistence.PersistenceUnit;
import javax.persistence.EntityManagerFactory;
@@ -180,7 +180,7 @@ public class MyBean implements MyInterfa
InitialContext context = new InitialContext();
EntityManagerFactory fooEntityManagerFactory = (EntityManagerFactory) context.lookup("java:comp/env/myFooEntityManagerFactory");
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -191,13 +191,13 @@ public class MyBean implements MyInterfa
<p>The above @PersistenceUnit annotation usage is 100% equivalent to the
following xml.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><persistence-unit-ref>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><persistence-unit-ref>
<persistence-unit-ref-name>myFooEntityManagerFactory</persistence-unit-ref-name>
<persistence-unit-name>foo-unit</persistence-unit-name>
<persistence-unit-type>Transaction</persistence-unit-type>
-</persistence-unit-ref></pre>
+</persistence-unit-ref></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/properties-tool.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/properties-tool.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/properties-tool.html (original)
+++ tomee/site/trunk/content/master/docs/properties-tool.html Sun Dec 9 02:54:59 2018
@@ -153,9 +153,9 @@ is created).</p>
the new property value before constructing the individual component.</p>
</div>
<h1 id="_example_output" class="sect0">Example output</h1>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre># Container(id=Default CMP Container)
+<pre class="highlight"><code class="language-properties" data-lang="properties"># Container(id=Default CMP Container)
# className: org.apache.openejb.core.cmp.CmpContainer
#
Default\ CMP\ Container.CmpEngineFactory=org.apache.openejb.core.cmp.jpa.JpaCmpEngineFactory
@@ -314,7 +314,7 @@ admin.only_from=localhost
admin.port=4200
admin.threads=1
admin.name=admin
-admin.server=org.apache.openejb.server.admin.AdminDaemon</pre>
+admin.server=org.apache.openejb.server.admin.AdminDaemon</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/provisioning.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/provisioning.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/provisioning.html (original)
+++ tomee/site/trunk/content/master/docs/provisioning.html Sun Dec 9 02:54:59 2018
@@ -137,9 +137,9 @@ the container is able to access through
<div class="paragraph">
<p>Example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>/MIDDLE/foo/bar/my-local-file.jar</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">/MIDDLE/foo/bar/my-local-file.jar</code></pre>
</div>
</div>
</div>
@@ -152,9 +152,9 @@ JVM ones.</p>
<div class="paragraph">
<p>Example:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>http://atos.net/foo/bar/my-http-file.jar</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">http://atos.net/foo/bar/my-http-file.jar</code></pre>
</div>
</div>
</div>
@@ -169,17 +169,17 @@ maven informations to deploy your applic
<div class="paragraph">
<p>The location should follow:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>mvn:groupId/artifactId[/[version]/[type]]</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">mvn:groupId/artifactId[/[version]/[type]]</code></pre>
</div>
</div>
<div class="paragraph">
<p>or</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>mvn:groupId:artifactId[:[version]:[type]]</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">mvn:groupId:artifactId[:[version]:[type]]</code></pre>
</div>
</div>
<div class="paragraph">
@@ -188,9 +188,9 @@ maven informations to deploy your applic
<div class="paragraph">
<p>For instance you can use:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>mvn:net.atos.xa/my-application/1.0.0/war</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">mvn:net.atos.xa/my-application/1.0.0/war</code></pre>
</div>
</div>
</div>
@@ -214,9 +214,9 @@ a look to other tip pages).</p>
<p>Another way to install it with tomee is to edit or create the file
/conf/provisioning.properties and add the line:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>zip=http://repo1.maven.org/maven2/org/apache/openejb/openejb-provisionning/<version>/openejb-provisionning-<version>.zip</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">zip=http://repo1.maven.org/maven2/org/apache/openejb/openejb-provisionning/<version>/openejb-provisionning-<version>.zip</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/proxyfactory-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/proxyfactory-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/proxyfactory-config.html (original)
+++ tomee/site/trunk/content/master/docs/proxyfactory-config.html Sun Dec 9 02:54:59 2018
@@ -101,10 +101,10 @@
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><ProxyFactory id="myProxyFactory" type="ProxyFactory">
-</ProxyFactory></pre>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><ProxyFactory id="myProxyFactory" type="ProxyFactory">
+</ProxyFactory></code></pre>
</div>
</div>
<div class="paragraph">
@@ -113,9 +113,9 @@ body are optional.</p>
<code>-D</code> properties. The properties can also be used when 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>myProxyFactory = new://ProxyFactory?type=ProxyFactory</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myProxyFactory = new://ProxyFactory?type=ProxyFactory</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/queue-config.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/queue-config.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/queue-config.html (original)
+++ tomee/site/trunk/content/master/docs/queue-config.html Sun Dec 9 02:54:59 2018
@@ -100,11 +100,11 @@
file or in a <code>WEB-INF/resources.xml</code> file 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><Resource id="myQueue" type="javax.jms.Queue">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><Resource id="myQueue" type="javax.jms.Queue">
destination =
-</Resource></pre>
+</Resource></code></pre>
</div>
</div>
<div class="paragraph">
@@ -113,10 +113,10 @@ following. All properties in the element
<code>-D</code> properties. The properties can also be used when 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>myQueue = new://Resource?type=javax.jms.Queue
-myQueue.destination =</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">myQueue = new://Resource?type=javax.jms.Queue
+myQueue.destination =</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/remote-server.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/remote-server.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/remote-server.html (original)
+++ tomee/site/trunk/content/master/docs/remote-server.html Sun Dec 9 02:54:59 2018
@@ -138,9 +138,9 @@ example.</p>
<div class="paragraph">
<p>Deploy your bean with the Deploy Tool:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>c:\openejb> openejb.bat deploy beans\myBean.jar</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">c:\openejb> openejb.bat deploy beans\myBean.jar</code></pre>
</div>
</div>
<div class="paragraph">
@@ -150,9 +150,9 @@ documentation for more details on deploy
<div class="paragraph">
<p>Start the server:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>c:\openejb> openejb.bat start -h 25.14.3.92 -p 4201</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">c:\openejb> openejb.bat start -h 25.14.3.92 -p 4201</code></pre>
</div>
</div>
<div class="paragraph">
@@ -162,15 +162,15 @@ the Remote Server.</p>
<div class="paragraph">
<p>Create an initial context in your client as such:</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("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url", "ejbd://25.14.3.92:4201");
p.put("java.naming.security.principal", "myuser");
p.put("java.naming.security.credentials", "mypass");
-InitialContext ctx = new InitialContext(p);</pre>
+InitialContext ctx = new InitialContext(p);</code></pre>
</div>
</div>
<div class="paragraph">
Modified: tomee/site/trunk/content/master/docs/resource-injection.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/resource-injection.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/resource-injection.html (original)
+++ tomee/site/trunk/content/master/docs/resource-injection.html Sun Dec 9 02:54:59 2018
@@ -170,12 +170,12 @@ The default value of 10 is assigned. You
environment entries at deployment time using deployment descriptor
(<strong>ejb-jar.xml</strong>).</p>
</div>
-<div class="sect3">
-<h4 id="__resource_annotation_of_a_field">@Resource annotation of a field</h4>
-<div class="literalblock">
+<div class="sect2">
+<h3 id="__resource_annotation_of_a_field">@Resource annotation of a field</h3>
+<div class="listingblock">
<div class="content">
-<pre>@Resource
-int maxLineItems = 10;</pre>
+<pre class="highlight"><code class="language-java" data-lang="java">@Resource
+int maxLineItems = 10;</code></pre>
</div>
</div>
</div>
@@ -193,9 +193,9 @@ setters can be used as a way to inject e
<p>You could look up the env-entry using JNDI lookup() method and the
following name:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>java:comp/env/org.apache.openejb.examples.resource.InvoiceBean/maxLineItems</pre>
+<pre class="highlight"><code class="language-properties" data-lang="properties">java:comp/env/org.apache.openejb.examples.resource.InvoiceBean/maxLineItems</code></pre>
</div>
</div>
<div class="paragraph">
@@ -203,35 +203,35 @@ following name:</p>
a instance field (or a name of the setter method without <em>set</em> prefix
and the first letter lowercased).</p>
</div>
-<div class="sect3">
-<h4 id="__resource_annotation_of_a_setter_method">@Resource annotation of a setter method</h4>
-<div class="literalblock">
+<div class="sect2">
+<h3 id="__resource_annotation_of_a_setter_method">@Resource annotation of a setter method</h3>
+<div class="listingblock">
<div class="content">
-<pre>@Resource
+<pre class="highlight"><code class="language-java" data-lang="java">@Resource
public void setMaxLineItems(int maxLineItems) {
this.maxLineItems = maxLineItems;
-}</pre>
+}</code></pre>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_using_env_entry_in_ejb_jar_xml">Using env-entry in ejb-jar.xml</h4>
-<div class="literalblock">
+<div class="sect2">
+<h3 id="_using_env_entry_in_ejb_jar_xml">Using env-entry in ejb-jar.xml</h3>
+<div class="listingblock">
<div class="content">
-<pre><env-entry>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><env-entry>
<description>The maximum number of line items per invoice.</description>
<env-entry-name>org.apache.openejb.examples.injection.InvoiceBean/maxLineItems</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>15</env-entry-value>
-</env-entry></pre>
+</env-entry></code></pre>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_using_resource_annotated_env_entry">Using @Resource annotated env-entry</h4>
-<div class="literalblock">
+<div class="sect2">
+<h3 id="_using_resource_annotated_env_entry">Using @Resource annotated env-entry</h3>
+<div class="listingblock">
<div class="content">
-<pre>public void addLineItem(LineItem item) throws TooManyItemsException {
+<pre class="highlight"><code class="language-java" data-lang="java">public void addLineItem(LineItem item) throws TooManyItemsException {
if (item == null) {
throw new IllegalArgumentException("Line item must not be null");
}
@@ -242,7 +242,7 @@ public void setMaxLineItems(int maxLineI
} else {
throw new TooManyItemsException("Number of items exceeded the maximum limit");
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -254,24 +254,27 @@ public void setMaxLineItems(int maxLineI
write a setup method to create and initialize the InitialContext, and
then write our test methods.</p>
</div>
-<div class="sect3">
-<h4 id="_test_fixture">Test fixture</h4>
-<div class="literalblock">
+<div class="sect1">
+<h2 id="_test_fixture">Test fixture</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>protected void setUp() throws Exception {
+<pre class="highlight"><code class="language-java" data-lang="java">protected void setUp() throws Exception {
Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
properties.setProperty("openejb.deployments.classpath.include", ".*resource-injection.*");
initialContext = new InitialContext(properties);
-}</pre>
+}</code></pre>
+</div>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_test_methods">Test methods</h4>
-<div class="literalblock">
+<div class="sect1">
+<h2 id="_test_methods">Test methods</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>public void testAddLineItem() throws Exception {
+<pre class="highlight"><code class="language-java" data-lang="java">public void testAddLineItem() throws Exception {
Invoice order = (Invoice)initialContext.lookup("InvoiceBeanBusinessRemote");
assertNotNull(order);
LineItem item = new LineItem("ABC-1", "Test Item");
@@ -281,7 +284,8 @@ then write our test methods.</p>
} catch (TooManyItemsException tmie) {
fail("Test failed due to: " + tmie.getMessage());
}
-}</pre>
+}</code></pre>
+</div>
</div>
</div>
</div>
@@ -300,9 +304,9 @@ commands:</p>
</div>
</blockquote>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>-------------------------------------------------------
+<pre class="highlight"><code class="language-java" data-lang="java">-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.superbiz.injection.PurchaseOrderBeanTest
@@ -333,7 +337,7 @@ Tests run: 2, Failures: 0, Errors: 0, Sk
Results :
-Tests run: 4, Failures: 0, Errors: 0, Skipped: 0</pre>
+Tests run: 4, Failures: 0, Errors: 0, Skipped: 0</code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/resource-ref-for-datasource.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/resource-ref-for-datasource.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/resource-ref-for-datasource.html (original)
+++ tomee/site/trunk/content/master/docs/resource-ref-for-datasource.html Sun Dec 9 02:54:59 2018
@@ -97,9 +97,9 @@
<div class="col-md-12">
<div id="preamble">
<div class="sectionbody">
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>package org.superbiz.refs;
+<pre class="highlight"><code class="language-java" data-lang="java">package org.superbiz.refs;
import javax.annotation.Resource;
import javax.ejb.Stateless;
@@ -121,7 +121,7 @@ public class MyDataSourceRefBean impleme
DataSource fooDataSource = (DataSource) context.lookup("java:comp/env/myFooDataSource");
DataSource barDataSource = (DataSource) context.lookup("java:comp/env/org.superbiz.refs.MyDataSourceRefBean/myBarDataSource");
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -133,9 +133,9 @@ public class MyDataSourceRefBean impleme
<p>The above @Resource annotation usage is 100% equivalent to the following
xml.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><resource-ref>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><resource-ref>
<res-ref-name>myFooDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
</resource-ref>
@@ -146,7 +146,7 @@ xml.</p>
<injection-target-class>org.superbiz.refs.MyDataSourceRefBean</injection-target-class>
<injection-target-name>myBarDataSource</injection-target-name>
</injection-target>
-</resource-ref></pre>
+</resource-ref></code></pre>
</div>
</div>
</div>
Modified: tomee/site/trunk/content/master/docs/securing-a-web-service.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/master/docs/securing-a-web-service.html?rev=1848496&r1=1848495&r2=1848496&view=diff
==============================================================================
--- tomee/site/trunk/content/master/docs/securing-a-web-service.html (original)
+++ tomee/site/trunk/content/master/docs/securing-a-web-service.html Sun Dec 9 02:54:59 2018
@@ -212,13 +212,13 @@ content of this element is consistent wi
<em>openejb.xml</em>. The format for properties is the same as if you would use
a common java property file.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><properties>
+<pre class="highlight"><code class="language-xml" data-lang="xml"><properties>
wss4j.in.action = UsernameToken
wss4j.in.passwordType = PasswordDigest
wss4j.in.passwordCallbackClass=org.superbiz.calculator.CustomPasswordHandler
-</properties></pre>
+</properties></code></pre>
</div>
</div>
<div class="paragraph">
@@ -232,9 +232,9 @@ naming conventions. Each property is mad
<div class="paragraph">
<p><em>openejb-jar.xml</em>.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre><openejb-jar xmlns="http://tomee.apache.org/xml/ns/openejb-jar-2.2">
+<pre class="highlight"><code class="language-xml" data-lang="xml"><openejb-jar xmlns="http://tomee.apache.org/xml/ns/openejb-jar-2.2">
<enterprise-beans>
...
<session>
@@ -252,18 +252,19 @@ naming conventions. Each property is mad
</session>
...
</enterprise-beans>
-</openejb-jar></pre>
+</openejb-jar></code></pre>
</div>
</div>
-<div class="sect3">
-<h4 id="_request_sent_by_the_client_this_request_contains_soap_headers_to">Request sent by the client. This request contains SOAP headers to</h4>
+<div class="sect1">
+<h2 id="_request_sent_by_the_client_this_request_contains_soap_headers_to">Request sent by the client. This request contains SOAP headers to</h2>
+<div class="sectionbody">
<div class="paragraph">
<p>manage security. You can see <em>UsernameToken</em> tag from the WS-Security
specification.</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>POST /CalculatorImplUsernameTokenHashedPassword HTTP/1.1
+<pre class="highlight"><code class="language-properties" data-lang="properties">POST /CalculatorImplUsernameTokenHashedPassword HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Accept: *
@@ -295,15 +296,17 @@ xmlns:wsse="http://docs.oasis-open.org/w
<arg1>6</arg1>
</ns1:sum>
</soap:Body>
-</soap:Envelope></pre>
+</soap:Envelope></code></pre>
</div>
</div>
</div>
-<div class="sect3">
-<h4 id="_the_response_returned_from_the_server">The response returned from the server.</h4>
-<div class="literalblock">
+</div>
+<div class="sect1">
+<h2 id="_the_response_returned_from_the_server">The response returned from the server.</h2>
+<div class="sectionbody">
+<div class="listingblock">
<div class="content">
-<pre>HTTP/1.1 200 OK
+<pre class="highlight"><code class="language-properties" data-lang="properties">HTTP/1.1 200 OK
Content-Length: 200
Connection: close
Content-Type: text/xml; charset=UTF-8
@@ -315,7 +318,8 @@ Server: OpenEJB/??? (unknown os)
<return>10</return>
</ns1:sumResponse>
</soap:Body>
-</soap:Envelope></pre>
+</soap:Envelope></code></pre>
+</div>
</div>
</div>
</div>
@@ -330,9 +334,9 @@ with 1 should be honoured.</p>
<p>Here is a snippet from the webservice-ws-security example demonstrating
this:</p>
</div>
-<div class="literalblock">
+<div class="listingblock">
<div class="content">
-<pre>public class CustomPasswordHandler implements CallbackHandler {
+<pre class="highlight"><code class="language-java" data-lang="java">public class CustomPasswordHandler implements CallbackHandler {
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
@@ -367,7 +371,7 @@ this:</p>
}
}
}
-}</pre>
+}</code></pre>
</div>
</div>
<h1 id="_examples_a_full_example_webservice_ws_security_is_available_with" class="sect0">Examples A full example (webservice-ws-security) is available with</h1>