Author: buildbot
Date: Mon Jul 11 03:37:19 2011
New Revision: 792515
Log:
Staging update by buildbot
Modified:
websites/staging/openejb/trunk/content/callbacks.html
websites/staging/openejb/trunk/content/clients.html
websites/staging/openejb/trunk/content/common-persistenceprovider-properties.html
websites/staging/openejb/trunk/content/configuration.html
websites/staging/openejb/trunk/content/configuring-containers-in-tests.html
websites/staging/openejb/trunk/content/configuring-datasources-in-tests.html
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
websites/staging/openejb/trunk/content/getting-started.html
websites/staging/openejb/trunk/content/javaagent.html
websites/staging/openejb/trunk/content/local-client-injection.html
websites/staging/openejb/trunk/content/logging.html
websites/staging/openejb/trunk/content/management-and-voting.html
websites/staging/openejb/trunk/content/remote-server.html
websites/staging/openejb/trunk/content/security.html
websites/staging/openejb/trunk/content/testcase-with-testbean-inner-class.html
websites/staging/openejb/trunk/content/time-saved.html
websites/staging/openejb/trunk/content/understanding-callbacks.html
websites/staging/openejb/trunk/content/understanding-the-directory-layout.html
Modified: websites/staging/openejb/trunk/content/callbacks.html
==============================================================================
--- websites/staging/openejb/trunk/content/callbacks.html (original)
+++ websites/staging/openejb/trunk/content/callbacks.html Mon Jul 11 03:37:19
2011
@@ -204,14 +204,12 @@ public class MyStatelessBean implements
}
@AroundInvoke
- public Object invoke(InvocationContext invocationContext) throws
+ public Object invoke(InvocationContext invocationContext) throws Exception
{
+ return invocationContext.proceed();
+ }
+}
</code></pre>
-<p>Exception {
- return invocationContext.proceed();
- }
- }</p>
-
<p><a name="Callbacks-Stateful"></a></p>
<h2>Stateful</h2>
@@ -238,14 +236,11 @@ public class MyStatefulBean implements
}
@AroundInvoke
- public Object invoke(InvocationContext invocationContext) throws
-</code></pre>
-
-<p>Exception {
- return invocationContext.proceed();
- }</p>
+ public Object invoke(InvocationContext invocationContext) throws Exception
{
+ return invocationContext.proceed();
+ }
-<pre><code> @PostActivate
+ @PostActivate
public void activated(){
}
@@ -281,14 +276,12 @@ public class MyMessageDrivenBean impleme
}
@AroundInvoke
- public Object invoke(InvocationContext invocationContext) throws
+ public Object invoke(InvocationContext invocationContext) throws Exception
{
+ return invocationContext.proceed();
+ }
+}
</code></pre>
-<p>Exception {
- return invocationContext.proceed();
- }
- }</p>
-
<p><a name="Callbacks-Interceptor"></a></p>
<h2>Interceptor</h2>
@@ -313,14 +306,11 @@ public class MyInterceptor {
}
@AroundInvoke
- public Object invoke(InvocationContext invocationContext) throws
-</code></pre>
-
-<p>Exception {
+ public Object invoke(InvocationContext invocationContext) throws Exception
{
return invocationContext.proceed();
- }</p>
+ }
-<pre><code> @PostActivate
+ @PostActivate
public void activated(InvocationContext invocationContext){
}
Modified: websites/staging/openejb/trunk/content/clients.html
==============================================================================
--- websites/staging/openejb/trunk/content/clients.html (original)
+++ websites/staging/openejb/trunk/content/clients.html Mon Jul 11 03:37:19 2011
@@ -157,12 +157,9 @@
<h1>Local Client (embedded container)</h1>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
-
-<p>"org.apache.openejb.client.LocalInitialContextFactory");</p>
+p.put("java.naming.factory.initial",
"org.apache.openejb.client.LocalInitialContextFactory");
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");
</code></pre>
@@ -194,13 +191,10 @@ MyApp {
<h2>Program code</h2>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
+p.put("java.naming.factory.initial",
"org.apache.openejb.client.LocalInitialContextFactory");
+p.put("openejb.authentication.realmName", "MyApp");
-<p>"org.apache.openejb.client.LocalInitialContextFactory");
- p.put("openejb.authentication.realmName", "MyApp");</p>
-
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");
</code></pre>
@@ -210,16 +204,13 @@ MyBean myBean = (MyBean) ctx.lookup("MyB
<h1>Remote Client (openejb standalone)</h1>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
+p.put("java.naming.factory.initial",
"org.apache.openejb.client.RemoteInitialContextFactory");
+p.put("java.naming.provider.url", "ejbd://localhost:4201");
+// user and pass optional
+p.put("java.naming.security.principal", "myuser");
+p.put("java.naming.security.credentials", "mypass");
-<p>"org.apache.openejb.client.RemoteInitialContextFactory");
- p.put("java.naming.provider.url", "ejbd://localhost:4201");
- // user and pass optional
- p.put("java.naming.security.principal", "myuser");
- p.put("java.naming.security.credentials", "mypass");</p>
-
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");
</code></pre>
@@ -229,16 +220,13 @@ MyBean myBean = (MyBean) ctx.lookup("MyB
<h1>Remote Client with HTTP (openejb standalone)</h1>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
-
-<p>"org.apache.openejb.client.RemoteInitialContextFactory");
- p.put("java.naming.provider.url", "http://localhost:4204/ejb");
- // user and pass optional
- p.put("java.naming.security.principal", "myuser");
- p.put("java.naming.security.credentials", "mypass");</p>
+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
+p.put("java.naming.security.principal", "myuser");
+p.put("java.naming.security.credentials", "mypass");
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");
</code></pre>
@@ -248,16 +236,13 @@ MyBean myBean = (MyBean) ctx.lookup("MyB
<h1>Remote Client with HTTP (in tomcat)</h1>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
-
-<p>"org.apache.openejb.client.RemoteInitialContextFactory");
- p.put("java.naming.provider.url", "http://127.0.0.1:8080/openejb/ejb");
- // user and pass optional
- p.put("java.naming.security.principal", "myuser");
- p.put("java.naming.security.credentials", "mypass");</p>
+p.put("java.naming.factory.initial",
"org.apache.openejb.client.RemoteInitialContextFactory");
+p.put("java.naming.provider.url", "http://127.0.0.1:8080/openejb/ejb");
+// user and pass optional
+p.put("java.naming.security.principal", "myuser");
+p.put("java.naming.security.credentials", "mypass");
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
MyBean myBean = (MyBean) ctx.lookup("MyBeanRemote");
</code></pre>
Modified:
websites/staging/openejb/trunk/content/common-persistenceprovider-properties.html
==============================================================================
---
websites/staging/openejb/trunk/content/common-persistenceprovider-properties.html
(original)
+++
websites/staging/openejb/trunk/content/common-persistenceprovider-properties.html
Mon Jul 11 03:37:19 2011
@@ -160,15 +160,14 @@ common properties used by the various pe
<h1>TopLink</h1>
<pre><code><properties>
-</code></pre>
-<p><!--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></p>
+
<!--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>
+</code></pre>
<p><a name="CommonPersistenceProviderproperties-OpenJPA"></a></p>
@@ -176,25 +175,16 @@ value="pl.zsk.samples.ejbservice.OpenEJB
<pre><code><properties>
<!--http://openjpa.apache.org/faq.html-->
- <!-- does not create foreign keys, creates schema and deletes content of
+ <!-- does not create foreign keys, creates schema and deletes content of
a database
+ (deleteTableContents - foreign keys are created twice???), use dropDB
instead -->
+ <property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(foreignKeys=true,schemaAction='dropDB,add')"/>
+ <!--Resolves the problem with foreign key integrity - joined entities are
persisted sometimes in wrong order??? (verify it)-->
+ <property name="openjpa.jdbc.SchemaFactory"
value="native(foreignKeys=true)" />
+ <!--Create foreign keys--> <property
name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict,
JoinForeignKeyDeleteAction=restrict"/>
+ <property name="openjpa.Log" value="DefaultLevel=TRACE,SQL=TRACE" />
+</properties>
</code></pre>
-<p>a database
- (deleteTableContents - foreign keys are created twice???), use
-dropDB instead -->
- <property name="openjpa.jdbc.SynchronizeMappings"
-value="buildSchema(foreignKeys=true,schemaAction='dropDB,add')"/>
- <!--Resolves the problem with foreign key integrity - joined entities are
-persisted sometimes in wrong order??? (verify it)-->
- <property name="openjpa.jdbc.SchemaFactory"
-value="native(foreignKeys=true)" />
- <!--Create foreign keys-->
- <property name="openjpa.jdbc.MappingDefaults"
-value="ForeignKeyDeleteAction=restrict,
-JoinForeignKeyDeleteAction=restrict"/>
- <property name="openjpa.Log" value="DefaultLevel=TRACE,SQL=TRACE" />
- </properties></p>
-
<p><a name="CommonPersistenceProviderproperties-Hibernate"></a></p>
<h1>Hibernate</h1>
Modified: websites/staging/openejb/trunk/content/configuration.html
==============================================================================
--- websites/staging/openejb/trunk/content/configuration.html (original)
+++ websites/staging/openejb/trunk/content/configuration.html Mon Jul 11
03:37:19 2011
@@ -209,96 +209,76 @@ OpenEJB saves deployment descriptors - e
<h1>Basic Layout</h1>
-<pre><code>Basically, openejb.base is the source for 100% of all configuration
-</code></pre>
-
-<p>information and third party config files (log4j, castor, instantdb,
+<p>Basically, openejb.base is the source for 100% of all configuration
+information and third party config files (log4j, castor, instantdb,
whatever). This includes finding where the, possibly many, <Deployment>
entries in the openejb.conf point. The openejb.home is where the code
loading OpenEJB will look for all the OpenEJB libraries. Usually
openejb.base is not explicitly set and defaults to the value of
openejb.home, so many people are used to only dealing with openejb.home.</p>
-<pre><code>The point of having and openejb.base and openejb.home was basically
to
-</code></pre>
-
-<p>allow several independently configured instances of OpenEJB running on a
+<p>The point of having and openejb.base and openejb.home was basically to
+allow several independently configured instances of OpenEJB running on a
system (perhaps embedded in Swing apps, in Tomcat, running as a standalone
Server, or even in Groovy as Mr. Strachan did!) but without the need to
copy all the OpenEJB system libraries everywhere.</p>
-<pre><code>*openejb.home*
- * can be set explicitly via a system property.
- * if not set it default's to user.dir, which is the current working
-</code></pre>
-
-<p>directory.</p>
-
-<pre><code>*openejb.base*
- * can be set explicitly via a system property.
- * If not set it default's to openejb.home.
-
-*openejb.configuration*
- * can be set to explicitly point to the file containing your
-</code></pre>
-
-<p>configuration. <br />
- * If set to a relative path, we first look in user.dir/your-conf-file,
-then in openejb.base/your-conf-file
- * If not set we check in openejb.base/conf/openejb.conf
- * If no conf file is found, we create one in
-openejb.base/conf/openejb.conf</p>
-
-<pre><code>*relative paths in openejb.conf*
- * Deployment entries are resolved relative to openejb.base.
- * Containers use openejb.base to resolve their own config files. For
-</code></pre>
-
-<p>example, Castor JDO to loads the database.xml and all other files from the
-openejb.base directory.
- * Resource adapters that are embedded usually have config files of their
-own and are also loaded from the openeb.base.</p>
-
-<pre><code>*log files*
- * The log4.configuration file is resolved relative to openejb.base.
- * The properties in the config file that point to files are also resolved
-</code></pre>
-
-<p>relative to openejb.base.</p>
-
-<pre><code>*OpenEJB libraries*
- * The jars in the lib and dist directories under openejb.home are added
-</code></pre>
-
-<p>to the classpath.</p>
+<p><em>openejb.home</em>
+ * can be set explicitly via a system property.
+ * if not set it default's to user.dir, which is the current working
+ directory.</p>
+
+<p><em>openejb.base</em>
+ * can be set explicitly via a system property.
+ * If not set it default's to openejb.home.</p>
+
+<p><em>openejb.configuration</em>
+ * can be set to explicitly point to the file containing your
+ configuration.
+ * If set to a relative path, we first look in user.dir/your-conf-file,
+ then in openejb.base/your-conf-file
+ * If not set we check in openejb.base/conf/openejb.conf
+ * If no conf file is found, we create one in
+ openejb.base/conf/openejb.conf</p>
+
+<p><em>relative paths in openejb.conf</em>
+ * Deployment entries are resolved relative to openejb.base.
+ * Containers use openejb.base to resolve their own config files. For
+ example, Castor JDO to loads the database.xml and all other files from the
+ openejb.base directory.
+ * Resource adapters that are embedded usually have config files of their
+ own and are also loaded from the openeb.base.</p>
+
+<p><em>log files</em>
+ * The log4.configuration file is resolved relative to openejb.base.
+ * The properties in the config file that point to files are also resolved
+ relative to openejb.base.</p>
+
+<p><em>OpenEJB libraries</em>
+ * The jars in the lib and dist directories under openejb.home are added
+to the classpath.</p>
<h2>Summary</h2>
-<pre><code>A summary of the above in a different notation:
+<p>A summary of the above in a different notation:</p>
-{noformat}
-openejb.home = user.dir (can be set explicitly)
+<pre><code>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
+deployments = paths listed in openejb.conf (relative paths resolved from
openejb.base)
+Classpath includes openejb.home/lib and openejb.home/dist
</code></pre>
-<p>openejb.base)
- Classpath includes openejb.home/lib and openejb.home/dist
- {noformat}</p>
-
<h2>Example layout</h2>
-<pre><code>In this one the openejb.home and openejb.base are set, everything
else is
-</code></pre>
-
-<p>defaulted. The openejb.conf file as been updated to point to the ejb jars
+<p>In this one the openejb.home and openejb.base are set, everything else is
+defaulted. The openejb.conf file as been updated to point to the ejb jars
by name (abc-ejbs.jar and xyz-ejbs.jar).</p>
-<pre><code>An example layout:
-{noformat}
-/usr/local/openejb (openejb.home)
+<p>An example layout:</p>
+
+<pre><code>/usr/local/openejb (openejb.home)
/usr/local/openejb/lib (in classpath)
/usr/local/openejb/dist (in classpath)
/home/jsmith/foo_app (openejb.base)
@@ -307,19 +287,16 @@ by name (abc-ejbs.jar and xyz-ejbs.jar).
/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/
-{noformat}
</code></pre>
<h2>Another Example layout</h2>
-<pre><code>In this example openejb.home and openejb.base are setup as well as
the
-</code></pre>
+<p>In this example openejb.home and openejb.base are setup as well as the
+explicit paths for the openejb and log4j configuration files.</p>
-<p>explicit paths for the openejb and log4j configuration files.</p>
+<p>An example layout:</p>
-<pre><code>An example layout:
-{noformat}
-/usr/local/openejb (openejb.home)
+<pre><code>/usr/local/openejb (openejb.home)
/usr/local/openejb/lib (in classpath)
/usr/local/openejb/dist (in classpath)
/home/jsmith/foo_app (openejb.base)
@@ -328,7 +305,6 @@ by name (abc-ejbs.jar and xyz-ejbs.jar).
/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)
-{noformat}
</code></pre>
</DIV>
Modified:
websites/staging/openejb/trunk/content/configuring-containers-in-tests.html
==============================================================================
--- websites/staging/openejb/trunk/content/configuring-containers-in-tests.html
(original)
+++ websites/staging/openejb/trunk/content/configuring-containers-in-tests.html
Mon Jul 11 03:37:19 2011
@@ -158,12 +158,9 @@ container so that it's guaranteed to pas
the bean, allowing you to test your callbacks behave as you need them to.</p>
<pre><code>Properties p = new Properties();
-p.put(Context.INITIAL_CONTEXT_FACTORY,
-</code></pre>
-
-<p>"org.apache.openejb.client.LocalInitialContextFactory");</p>
+p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
-<pre><code>p.put("myStatefulContainer", "new://Container?type=STATEFUL");
+p.put("myStatefulContainer", "new://Container?type=STATEFUL");
p.put("myStatefulContainer.PoolSize", "0");
p.put("myStatefulContainer.BulkPassivate", "1");
Modified:
websites/staging/openejb/trunk/content/configuring-datasources-in-tests.html
==============================================================================
---
websites/staging/openejb/trunk/content/configuring-datasources-in-tests.html
(original)
+++
websites/staging/openejb/trunk/content/configuring-datasources-in-tests.html
Mon Jul 11 03:37:19 2011
@@ -160,12 +160,9 @@
need for an openejb.xml entirely) like so:</p>
<pre><code>Properties p = new Properties();
-p.put(Context.INITIAL_CONTEXT_FACTORY,
-</code></pre>
-
-<p>"org.apache.openejb.client.LocalInitialContextFactory");</p>
+p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
-<pre><code>p.put("myDataSource", "new://Resource?type=DataSource");
+p.put("myDataSource", "new://Resource?type=DataSource");
p.put("myDataSource.JdbcDriver", "org.apache.derby.jdbc.EmbeddedDriver");
p.put("myDataSource.JdbcUrl", "jdbc:derby:derbyDB;create=true");
p.put("myDataSource.JtaManaged", "true");
Modified:
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
==============================================================================
---
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
(original)
+++
websites/staging/openejb/trunk/content/configuring-persistenceunits-in-tests.html
Mon Jul 11 03:37:19 2011
@@ -265,8 +265,7 @@ If the property is already set in the pe
overwritten if it starts with the standard "oracle.toplink.transaction."
prefix. </p>
-<pre><code>Custom transaction controller implementations will never be
overwritten.
-</code></pre>
+<p>Custom transaction controller implementations will never be overwritten.</p>
<h4>Provider org.eclipse.persistence.jpa.PersistenceProvider</h4>
Modified: websites/staging/openejb/trunk/content/getting-started.html
==============================================================================
--- websites/staging/openejb/trunk/content/getting-started.html (original)
+++ websites/staging/openejb/trunk/content/getting-started.html Mon Jul 11
03:37:19 2011
@@ -152,7 +152,7 @@
<P>
<!-- $BODY -->
<DIV id="PageContent">
- <h2> The following instructions are written using Eclipse 3.2.
We will</h2>
+ <h2>The following instructions are written using Eclipse 3.2. We
will</h2>
<p>refer to the install location of OpenEJB as OPENEJB_HOME</p>
@@ -172,32 +172,31 @@
<p><a name="GettingStarted- 1.DownloadandInstallOpenEJB"></a></p>
-<h2> 1. Download and Install OpenEJB</h2>
+<h2>1. Download and Install OpenEJB</h2>
<p>Follow these <a
href="http://cwiki.apache.org/confluence/display/OPENEJB/Quickstart">instructions</a></p>
<p><a name="GettingStarted- 2.Setupyourdevelopmentenvironment"></a></p>
-<h2> 2. Setup your development environment</h2>
+<h2>2. Setup your development environment</h2>
<p><a name="GettingStarted- Eclipse"></a></p>
-<h3> Eclipse</h3>
+<h3>Eclipse</h3>
-<ol>
+<ul>
<li>Open eclipse and create a new java project. Name it EJBProject</li>
-<li>Add the following jars to the build path of your project</li>
-<li># OPENEJB_HOME/lib/geronimo-ejb_3.0_spec-1.0.jar</li>
-<li>Now create another project named EJBClient. This is where we will write a
-test client</li>
-<li>Add the following jars to the build path of this project</li>
-<li># OPENEJB_HOME/lib/openejb-client-3.0.0-SNAPSHOT.jar</li>
+<li>Add the following jars to the build path of your project
+-- OPENEJB_HOME/lib/geronimo-ejb_3.0_spec-1.0.jar</li>
+<li>Now create another project named EJBClient. This is where we will write a
test client</li>
+<li>Add the following jars to the build path of this project
+-- OPENEJB_HOME/lib/openejb-client-3.0.0-SNAPSHOT.jar</li>
<li>Add the EJBProject to the classpath of the EJBClient project</li>
-</ol>
+</ul>
<p><a name="GettingStarted- 3.StarttheServer"></a></p>
-<h2> 3. Start the Server</h2>
+<h2>3. Start the Server</h2>
<p>Open the command prompt and run the following command:</p>
@@ -211,10 +210,8 @@ Apache OpenEJB 3.0.0-SNAPSHOT build:
http://openejb.apache.org/
OpenEJB ready.
[OPENEJB:init]
-</code></pre>
-
-<p>OpenEJB Remote Server
- <em>* Starting Services *</em>
+ OpenEJB Remote Server
+ ** Starting Services **
NAME IP PORT
httpejbd 0.0.0.0 4204
admin thread 0.0.0.0 4200
@@ -222,11 +219,12 @@ OpenEJB ready.
hsql 0.0.0.0 9001
telnet 0.0.0.0 4202
-------
- Ready!</p>
+ Ready!
+</code></pre>
<p><a name="GettingStarted- 4.WriteanEJB"></a></p>
-<h2> 4. Write an EJB</h2>
+<h2>4. Write an EJB</h2>
<p>In the EJB project create a new interface named Greeting</p>
@@ -259,7 +257,7 @@ public class GreetingBean implements Gre
<p><a name="GettingStarted- 5.DeploytheEJB"></a></p>
-<h2> 5. Deploy the EJB</h2>
+<h2>5. Deploy the EJB</h2>
<ol>
<li>Export the EJBProject as a jar file. Name it greeting.jar and put it in
@@ -277,12 +275,9 @@ Application deployed successfully at \{0
App(id=D:\openejb-3.0.0-SNAPSHOT\apps\greeting.jar)
- EjbJar(id=greeting.jar,
-</code></pre>
-
-<p>path=D:\openejb-3.0.0-SNAPSHOT\apps\greeting.jar)</p>
+ EjbJar(id=greeting.jar, path=D:\openejb-3.0.0-SNAPSHOT\apps\greeting.jar)
-<pre><code> Ejb(ejb-name=GreetingBean, id=GreetingBean)
+ Ejb(ejb-name=GreetingBean, id=GreetingBean)
Jndi(name=GreetingBeanRemote)
</code></pre>
@@ -293,7 +288,7 @@ use for lookup{</em>}{color}</p>
<p><a name="GettingStarted- 6.WritetheClient"></a></p>
-<h2> 6. Write the Client</h2>
+<h2>6. Write the Client</h2>
<p>In the EJBClient project, create a class named Client (shown below)</p>
@@ -305,17 +300,11 @@ import javax.naming.InitialContext;
import java.util.Properties;
public class Client {
- public static void main(String[]
-</code></pre>
+ public static void main(String[] args) {
-<p>args) {</p>
-
-<pre><code> try {
- Properties p = new Properties();
- p.put("java.naming.factory.initial",
-</code></pre>
-
-<p>"org.openejb.client.RemoteInitialContextFactory");
+ try {
+ Properties p = new Properties();
+ p.put("java.naming.factory.initial",
"org.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url", "ejbd://127.0.0.1:4201");
InitialContext ctx = new InitialContext(p);
Greeting greeter = (Greeting) ctx.lookup("GreetingBeanRemote");
@@ -324,12 +313,13 @@ public class Client {
} catch (Exception e) {
e.printStackTrace();
}
- }
- }</p>
+ }
+}
+</code></pre>
<p><a name="GettingStarted- 7.RuntheClient"></a></p>
-<h2> 7. Run the Client</h2>
+<h2>7. Run the Client</h2>
<p>Open Client.java in eclipse and run it as a java application. You should
see the following message in the console view:</p>
@@ -339,7 +329,7 @@ see the following message in the console
<p><a name="GettingStarted- 8.Stoptheserver"></a></p>
-<h2> 8. Stop the server</h2>
+<h2>8. Stop the server</h2>
<p>There are two ways to stop the server:
1. You can press Ctrl+c on the command prompt to stop the server
Modified: websites/staging/openejb/trunk/content/javaagent.html
==============================================================================
--- websites/staging/openejb/trunk/content/javaagent.html (original)
+++ websites/staging/openejb/trunk/content/javaagent.html Mon Jul 11 03:37:19
2011
@@ -176,52 +176,44 @@ your pom.xml file:</p>
<pre><code><build>
<plugins>
- <!-- this configures the surefire plugin to run your tests with the
-</code></pre>
-
-<p>javaagent enabled -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkMode>pertest</forkMode></p>
-
-<p><argLine>-javaagent:${basedir}/target/openejb-javaagent-3.0-beta-2.jar</argLine>
- <workingDirectory>${basedir}/target</workingDirectory>
- </configuration>
- </plugin></p>
-
-<pre><code> <!-- this tells maven to copy the openejb-javaagent jar into
your
-</code></pre>
-
-<p>target/ directory -->
- <!-- where surefire can see it -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <phase>process-resources</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.apache.openejb</groupId>
- <artifactId>openejb-javaagent</artifactId>
- <version>3.0-beta-2</version></p>
-
-<p><outputDirectory>${project.build.directory}</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin></p>
+ <!-- this configures the surefire plugin to run your tests with the
javaagent enabled -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkMode>pertest</forkMode>
+
<argLine>-javaagent:${basedir}/target/openejb-javaagent-3.0-beta-2.jar</argLine>
+ <workingDirectory>${basedir}/target</workingDirectory>
+ </configuration>
+ </plugin>
+
+ <!-- this tells maven to copy the openejb-javaagent jar into your
target/ directory -->
+ <!-- where surefire can see it -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.openejb</groupId>
+ <artifactId>openejb-javaagent</artifactId>
+ <version>3.0-beta-2</version>
+
<outputDirectory>${project.build.directory}</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
-<pre><code> </plugins>
+ </plugins>
</build>
</code></pre>
Modified: websites/staging/openejb/trunk/content/local-client-injection.html
==============================================================================
--- websites/staging/openejb/trunk/content/local-client-injection.html
(original)
+++ websites/staging/openejb/trunk/content/local-client-injection.html Mon Jul
11 03:37:19 2011
@@ -202,15 +202,12 @@ public class MoviesTest extends TestCase
public void setUp() throws Exception {
Properties p = new Properties();
- p.put(Context.INITIAL_CONTEXT_FACTORY,
-</code></pre>
-
-<p>"org.apache.openejb.client.LocalInitialContextFactory");
- InitialContext initialContext = new InitialContext(p);
- initialContext.bind("inject", this);
- }</p>
+ p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
+ InitialContext initialContext = new InitialContext(p);
+ initialContext.bind("inject", this);
+ }
-<pre><code> //... other test methods
+ //... other test methods
}
</code></pre>
Modified: websites/staging/openejb/trunk/content/logging.html
==============================================================================
--- websites/staging/openejb/trunk/content/logging.html (original)
+++ websites/staging/openejb/trunk/content/logging.html Mon Jul 11 03:37:19 2011
@@ -199,42 +199,31 @@ org.apache.openejb.util.LogCategory inst
class looks like</p>
<pre><code>public final class LogCategory {
- private final String name;
- public static final LogCategory OPENEJB = new LogCategory(
-</code></pre>
-
-<p>"OpenEJB");
- public static final LogCategory OPENEJB_ADMIN =
-OPENEJB.createChild("admin");
- public static final LogCategory OPENEJB_STARTUP =
-OPENEJB.createChild("startup");
- public static final LogCategory OPENEJB_STARTUP_CONFIG =
-OPENEJB_STARTUP.createChild("config");
- public static final LogCategory OPENEJB_STARTUP_VALIDATION =
-OPENEJB_STARTUP.createChild("validation");
- // other categories removed for code brevity
- private LogCategory(String name){
- this.name = name;
- }
- public String getName() {
- return name;
- }
- /**
- * Creates a child category of this category. <B>Use this method
-sparingly</B>. This method is to be used in only those circumstances where
-the name of the
- * category is not known upfront and is a derived name. If you know
-the name of the category, it is highly recommended to add a static final
-field
- * of type LogCategory in this class
- * @param child
- * @return - LogCategory
- */
- public LogCategory createChild(String child){
- return new LogCategory(this.name+"."+child);
- }</p>
+ private final String name;
+ public static final LogCategory OPENEJB = new LogCategory( "OpenEJB");
+ public static final LogCategory OPENEJB_ADMIN = OPENEJB.createChild("admin");
+ public static final LogCategory OPENEJB_STARTUP =
OPENEJB.createChild("startup");
+ public static final LogCategory OPENEJB_STARTUP_CONFIG =
OPENEJB_STARTUP.createChild("config");
+ public static final LogCategory OPENEJB_STARTUP_VALIDATION =
OPENEJB_STARTUP.createChild("validation");
+ // other categories removed for code brevity
+ private LogCategory(String name){
+ this.name = name;
+ }
+ public String getName() {
+ return name;
+ }
+ /**
+ * Creates a child category of this category. <B>Use this method
sparingly</B>. This method is to be used in only those circumstances
where the name of the
+ * category is not known upfront and is a derived name. If you know the name
of the category, it is highly recommended to add a static final field
+ * of type LogCategory in this class
+ * @param child
+ * @return - LogCategory
+ */
+ public LogCategory createChild(String child){
+ return new LogCategory(this.name+"."+child);
+ }
-<pre><code>}
+}
</code></pre>
<p>Notice carefully how each LogCategory instance is created. The
@@ -244,11 +233,9 @@ category upfront, simply open the LogCat
category. For example, if you needed to add a category named SHUTDOWN, here
is the recommended way to add it</p>
-<pre><code>public static final LogCategory OPENEJB_SHUTDOWN =
+<pre><code>public static final LogCategory OPENEJB_SHUTDOWN =
LogCategory.OPENEJB.createChild("shutdown");
</code></pre>
-<p>LogCategory.OPENEJB.createChild("shutdown");</p>
-
<p>Sometimes you may want to create a category whose name is "generated" at
runtime. In that case you can use the "createChild" method of the
LogCategory class to create this new category. For example, if you
Modified: websites/staging/openejb/trunk/content/management-and-voting.html
==============================================================================
--- websites/staging/openejb/trunk/content/management-and-voting.html (original)
+++ websites/staging/openejb/trunk/content/management-and-voting.html Mon Jul
11 03:37:19 2011
@@ -227,9 +227,7 @@ community are significant to the project
cause for pause and discussion. We frequently encourage and welcome votes
from anyone in the community regardless of status.</p>
-<h2>Q. Voting on people: Is it hard to vote -1 in public / Can someone get</h2>
-
-<p>their feelings hurt ?</p>
+<h2>Q. Voting on people: Is it hard to vote -1 in public / Can someone get
their feelings hurt ?</h2>
<p>Yes and yes. Voting in public requires greater care and sensitivity on
behalf of everyone; the vote proposer, the voters, and the votee. Prior to
Modified: websites/staging/openejb/trunk/content/remote-server.html
==============================================================================
--- websites/staging/openejb/trunk/content/remote-server.html (original)
+++ websites/staging/openejb/trunk/content/remote-server.html Mon Jul 11
03:37:19 2011
@@ -194,15 +194,12 @@ Remote Server.</p>
<p>Create an initial context in your client as such:</p>
<pre><code>Properties p = new Properties();
-p.put("java.naming.factory.initial",
-</code></pre>
-
-<p>"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");</p>
+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");
-<pre><code>InitialContext ctx = new InitialContext(p);
+InitialContext ctx = new InitialContext(p);
</code></pre>
<p>If you don't have any EJBs or clients to run, try the ubiquitous <a
href="openejbx30:hello-world.html">Hello World</a>
Modified: websites/staging/openejb/trunk/content/security.html
==============================================================================
--- websites/staging/openejb/trunk/content/security.html (original)
+++ websites/staging/openejb/trunk/content/security.html Mon Jul 11 03:37:19
2011
@@ -167,17 +167,15 @@ your InitialContext with the standard ja
user/pass info, which is:</p>
<pre><code>Properties props = new Properties();
-props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
-</code></pre>
-
-<p>"org.apache.openejb.client.RemoteInitialContextFactory");
- props.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
- props.setProperty(Context.SECURITY_PRINCIPAL, "someuser");
- props.setProperty(Context.SECURITY_CREDENTIALS, "thepass");
- props.setProperty("openejb.authentication.realmName", "PropertiesLogin");
+props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.RemoteInitialContextFactory");
+props.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
+props.setProperty(Context.SECURITY_PRINCIPAL, "someuser");
+props.setProperty(Context.SECURITY_CREDENTIALS, "thepass");
+props.setProperty("openejb.authentication.realmName", "PropertiesLogin");
// optional
- InitialContext ctx = new InitialContext(props);
- ctx.lookup(...);</p>
+InitialContext ctx = new InitialContext(props);
+ctx.lookup(...);
+</code></pre>
<p>That will get you logged in and all your calls from that context should
execute as you.</p>
Modified:
websites/staging/openejb/trunk/content/testcase-with-testbean-inner-class.html
==============================================================================
---
websites/staging/openejb/trunk/content/testcase-with-testbean-inner-class.html
(original)
+++
websites/staging/openejb/trunk/content/testcase-with-testbean-inner-class.html
Mon Jul 11 03:37:19 2011
@@ -185,19 +185,13 @@ public class MyTest extends TestCase {
@Override
protected void setUp() throws Exception {
Properties p = new Properties();
- p.put(Context.INITIAL_CONTEXT_FACTORY,
-</code></pre>
-
-<p>"org.apache.openejb.client.LocalInitialContextFactory");
- // set any other properties</p>
-
-<pre><code> InitialContext initialContext = new InitialContext(p);
- TestLocal testLocal = (TestLocal)
-</code></pre>
+ p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
+ // set any other properties
-<p>initialContext.lookup("TestBeanLocal");</p>
+ InitialContext initialContext = new InitialContext(p);
+ TestLocal testLocal = (TestLocal)
initialContext.lookup("TestBeanLocal");
-<pre><code> entityManager = testLocal.getEntityManager();
+ entityManager = testLocal.getEntityManager();
userTransaction = testLocal.getUserTransaction();
}
Modified: websites/staging/openejb/trunk/content/time-saved.html
==============================================================================
--- websites/staging/openejb/trunk/content/time-saved.html (original)
+++ websites/staging/openejb/trunk/content/time-saved.html Mon Jul 11 03:37:19
2011
@@ -164,10 +164,7 @@ for you!</p>
<h1>Calculator</h1>
-<p>{html}</p>
-
-<script type="text/javascript"
-src="http://prototypejs.org/assets/2010/4/1/prototype.js"></script>
+<script type="text/javascript"
src="http://prototypejs.org/assets/2010/4/1/prototype.js"></script>
<script>
@@ -178,111 +175,66 @@ src="http://prototypejs.org/assets/2010/
var individual_deployTime_openejb = $("time_openejb").getValue();
var individual_deployTime_vendor = $("time_vendor").getValue();
- var individual_deployTime_savings = individual_deployTime_vendor -
-individual_deployTime_openejb;
+ var individual_deployTime_savings = individual_deployTime_vendor -
individual_deployTime_openejb;
+
+ var individual_deployTimePerHour_openejb = cycles *
individual_deployTime_openejb / 8;
+ var individual_deployTimePerHour_vendor = cycles *
individual_deployTime_vendor / 8;
+ var individual_deployTimePerHour_savings =
individual_deployTimePerHour_vendor - individual_deployTimePerHour_openejb;
- var individual_deployTimePerHour_openejb = cycles *
-individual_deployTime_openejb / 8;
- var individual_deployTimePerHour_vendor = cycles *
-individual_deployTime_vendor / 8;
- var individual_deployTimePerHour_savings =
-individual_deployTimePerHour_vendor - individual_deployTimePerHour_openejb;
-
- var individual_deployTimePerWeek_openejb =
-individual_deployTimePerHour_openejb * 40;
- var individual_deployTimePerWeek_vendor =
-individual_deployTimePerHour_vendor * 40;
- var individual_deployTimePerWeek_savings =
-individual_deployTimePerWeek_vendor - individual_deployTimePerWeek_openejb;
-
- var individual_deployTimePerMonth_openejb =
-individual_deployTimePerWeek_openejb * 4.33;
- var individual_deployTimePerMonth_vendor =
-individual_deployTimePerWeek_vendor * 4.33;
- var individual_deployTimePerMonth_savings =
-individual_deployTimePerMonth_vendor -
-individual_deployTimePerMonth_openejb;
+ var individual_deployTimePerWeek_openejb =
individual_deployTimePerHour_openejb * 40;
+ var individual_deployTimePerWeek_vendor =
individual_deployTimePerHour_vendor * 40;
+ var individual_deployTimePerWeek_savings =
individual_deployTimePerWeek_vendor - individual_deployTimePerWeek_openejb;
- var team_deployTime_openejb = developers *
-individual_deployTime_openejb;
+ var individual_deployTimePerMonth_openejb =
individual_deployTimePerWeek_openejb * 4.33;
+ var individual_deployTimePerMonth_vendor =
individual_deployTimePerWeek_vendor * 4.33;
+ var individual_deployTimePerMonth_savings =
individual_deployTimePerMonth_vendor - individual_deployTimePerMonth_openejb;
+
+ var team_deployTime_openejb = developers * individual_deployTime_openejb;
var team_deployTime_vendor = developers * individual_deployTime_vendor;
- var team_deployTime_savings = developers *
-individual_deployTime_savings;
+ var team_deployTime_savings = developers * individual_deployTime_savings;
- var team_deployTimePerHour_openejb = developers *
-individual_deployTimePerHour_openejb;
- var team_deployTimePerHour_vendor = developers *
-individual_deployTimePerHour_vendor;
- var team_deployTimePerHour_savings = developers *
-individual_deployTimePerHour_savings;
-
- var team_deployTimePerWeek_openejb = developers *
-individual_deployTimePerWeek_openejb;
- var team_deployTimePerWeek_vendor = developers *
-individual_deployTimePerWeek_vendor;
- var team_deployTimePerWeek_savings = developers *
-individual_deployTimePerWeek_savings;
-
- var team_deployTimePerMonth_openejb = developers *
-individual_deployTimePerMonth_openejb;
- var team_deployTimePerMonth_vendor = developers *
-individual_deployTimePerMonth_vendor;
- var team_deployTimePerMonth_savings = developers *
-individual_deployTimePerMonth_savings;
+ var team_deployTimePerHour_openejb = developers *
individual_deployTimePerHour_openejb;
+ var team_deployTimePerHour_vendor = developers *
individual_deployTimePerHour_vendor;
+ var team_deployTimePerHour_savings = developers *
individual_deployTimePerHour_savings;
+
+ var team_deployTimePerWeek_openejb = developers *
individual_deployTimePerWeek_openejb;
+ var team_deployTimePerWeek_vendor = developers *
individual_deployTimePerWeek_vendor;
+ var team_deployTimePerWeek_savings = developers *
individual_deployTimePerWeek_savings;
+
+ var team_deployTimePerMonth_openejb = developers *
individual_deployTimePerMonth_openejb;
+ var team_deployTimePerMonth_vendor = developers *
individual_deployTimePerMonth_vendor;
+ var team_deployTimePerMonth_savings = developers *
individual_deployTimePerMonth_savings;
var total_savings = team_deployTimePerWeek_savings * weeks;
- $("individual.deployTime.openejb").innerHTML =
-format(individual_deployTime_openejb);
- $("individual.deployTime.vendor").innerHTML =
-format(individual_deployTime_vendor);
- $("individual.deployTime.savings").innerHTML =
-format(individual_deployTime_savings);
-
- $("individual.deployTimePerHour.openejb").innerHTML =
-format(individual_deployTimePerHour_openejb);
- $("individual.deployTimePerHour.vendor").innerHTML =
-format(individual_deployTimePerHour_vendor);
- $("individual.deployTimePerHour.savings").innerHTML =
-format(individual_deployTimePerHour_savings);
-
- $("individual.deployTimePerWeek.openejb").innerHTML =
-format(individual_deployTimePerWeek_openejb);
- $("individual.deployTimePerWeek.vendor").innerHTML =
-format(individual_deployTimePerWeek_vendor);
- $("individual.deployTimePerWeek.savings").innerHTML =
-format(individual_deployTimePerWeek_savings);
-
- $("individual.deployTimePerMonth.openejb").innerHTML =
-format(individual_deployTimePerMonth_openejb);
- $("individual.deployTimePerMonth.vendor").innerHTML =
-format(individual_deployTimePerMonth_vendor);
- $("individual.deployTimePerMonth.savings").innerHTML =
-format(individual_deployTimePerMonth_savings);
+ $("individual.deployTime.openejb").innerHTML =
format(individual_deployTime_openejb);
+ $("individual.deployTime.vendor").innerHTML =
format(individual_deployTime_vendor);
+ $("individual.deployTime.savings").innerHTML =
format(individual_deployTime_savings);
+
+ $("individual.deployTimePerHour.openejb").innerHTML =
format(individual_deployTimePerHour_openejb);
+ $("individual.deployTimePerHour.vendor").innerHTML =
format(individual_deployTimePerHour_vendor);
+ $("individual.deployTimePerHour.savings").innerHTML =
format(individual_deployTimePerHour_savings);
+
+ $("individual.deployTimePerWeek.openejb").innerHTML =
format(individual_deployTimePerWeek_openejb);
+ $("individual.deployTimePerWeek.vendor").innerHTML =
format(individual_deployTimePerWeek_vendor);
+ $("individual.deployTimePerWeek.savings").innerHTML =
format(individual_deployTimePerWeek_savings);
+
+ $("individual.deployTimePerMonth.openejb").innerHTML =
format(individual_deployTimePerMonth_openejb);
+ $("individual.deployTimePerMonth.vendor").innerHTML =
format(individual_deployTimePerMonth_vendor);
+ $("individual.deployTimePerMonth.savings").innerHTML =
format(individual_deployTimePerMonth_savings);
- $("team.deployTime.openejb").innerHTML =
-format(team_deployTime_openejb);
+ $("team.deployTime.openejb").innerHTML = format(team_deployTime_openejb);
$("team.deployTime.vendor").innerHTML = format(team_deployTime_vendor);
- $("team.deployTime.savings").innerHTML =
-format(team_deployTime_savings);
- $("team.deployTimePerHour.openejb").innerHTML =
-format(team_deployTimePerHour_openejb);
- $("team.deployTimePerHour.vendor").innerHTML =
-format(team_deployTimePerHour_vendor);
- $("team.deployTimePerHour.savings").innerHTML =
-format(team_deployTimePerHour_savings);
- $("team.deployTimePerWeek.openejb").innerHTML =
-format(team_deployTimePerWeek_openejb);
- $("team.deployTimePerWeek.vendor").innerHTML =
-format(team_deployTimePerWeek_vendor);
- $("team.deployTimePerWeek.savings").innerHTML =
-format(team_deployTimePerWeek_savings);
- $("team.deployTimePerMonth.openejb").innerHTML =
-format(team_deployTimePerMonth_openejb);
- $("team.deployTimePerMonth.vendor").innerHTML =
-format(team_deployTimePerMonth_vendor);
- $("team.deployTimePerMonth.savings").innerHTML =
-format(team_deployTimePerMonth_savings);
+ $("team.deployTime.savings").innerHTML = format(team_deployTime_savings);
+ $("team.deployTimePerHour.openejb").innerHTML =
format(team_deployTimePerHour_openejb);
+ $("team.deployTimePerHour.vendor").innerHTML =
format(team_deployTimePerHour_vendor);
+ $("team.deployTimePerHour.savings").innerHTML =
format(team_deployTimePerHour_savings);
+ $("team.deployTimePerWeek.openejb").innerHTML =
format(team_deployTimePerWeek_openejb);
+ $("team.deployTimePerWeek.vendor").innerHTML =
format(team_deployTimePerWeek_vendor);
+ $("team.deployTimePerWeek.savings").innerHTML =
format(team_deployTimePerWeek_savings);
+ $("team.deployTimePerMonth.openejb").innerHTML =
format(team_deployTimePerMonth_openejb);
+ $("team.deployTimePerMonth.vendor").innerHTML =
format(team_deployTimePerMonth_vendor);
+ $("team.deployTimePerMonth.savings").innerHTML =
format(team_deployTimePerMonth_savings);
$("totalSavings").innerHTML = longFormat(total_savings);
@@ -351,21 +303,17 @@ format(team_deployTimePerMonth_savings);
</tr>
<tr>
<td><strong>Time to start/deploy your app in OpenEJB?</strong></td>
- <td><input id="time_openejb" value="0" type="text" size="5"/>
-<i>seconds</i></td>
+ <td><input id="time_openejb" value="0" type="text" size="5"/>
<i>seconds</i></td>
</tr>
<tr>
- <td><strong>Time to start/deploy your app in your other
-platform?</strong></td>
- <td><input id="time_vendor" value="0" type="text" size="5"/>
-<i>seconds</i></td>
+ <td><strong>Time to start/deploy your app in your other
platform?</strong></td>
+ <td><input id="time_vendor" value="0" type="text" size="5"/>
<i>seconds</i></td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
- <td colspan="2" align="center"><input type="button" id="calculate"
-value="Calculate" onclick="calculate();"/></td>
+ <td colspan="2" align="center"><input type="button" id="calculate"
value="Calculate" onclick="calculate();"/></td>
</tr>
</table>
@@ -455,8 +403,6 @@ value="Calculate" onclick="calculate();"
<p><span id="totalSavings"></span></p>
-<p>{html}</p>
-
</DIV>
</P>
</TD>
Modified: websites/staging/openejb/trunk/content/understanding-callbacks.html
==============================================================================
--- websites/staging/openejb/trunk/content/understanding-callbacks.html
(original)
+++ websites/staging/openejb/trunk/content/understanding-callbacks.html Mon Jul
11 03:37:19 2011
@@ -163,22 +163,22 @@ AroundInvoke method and so on.</p>
<p>So the following is legal.</p>
-<pre><code> public class Plant {
+<pre><code>public class Plant {
@AroundInvoke
public Object a(InvocationContext ctx) throws Exception {
return ctx.proceed();
}
- }
+}
- public class Fruit extends Plant {
+public class Fruit extends Plant {
@AroundInvoke
public Object b(InvocationContext ctx) throws Exception {
return ctx.proceed();
}
- }
+}
- @Stateless
- public class Apple extends Fruit implements AppleLocal {
+@Stateless
+public class Apple extends Fruit implements AppleLocal {
@AroundInvoke
public Object c(InvocationContext ctx) throws Exception {
return ctx.proceed();
@@ -187,11 +187,11 @@ AroundInvoke method and so on.</p>
public String grow(){
return "ready to pick";
}
- }
+}
- public interface AppleLocal {
+public interface AppleLocal {
public String grow();
- }
+}
</code></pre>
<p>The result is that when the "grow" method on AppleLocal (and consequently
@@ -203,8 +203,8 @@ ways to effectively shut off the callbac
parent class by simply overriding the method. We can shut off the "a"
around invoke with a slightly different version of Apple as follows:</p>
-<pre><code> @Stateless
- public class Apple extends Fruit implements AppleLocal {
+<pre><code>@Stateless
+public class Apple extends Fruit implements AppleLocal {
// This will now never be called.
public Object a(InvocationContext ctx) throws Exception {
@@ -219,7 +219,7 @@ around invoke with a slightly different
public String grow(){
return "ready to pick";
}
- }
+}
</code></pre>
<p>The result of this is that when the "grow" method on AppleLocal is invoked,
@@ -230,16 +230,14 @@ skipping "a" completely.</p>
mean that they cannot be exposed to clients through a local or remote
interface. The following would be illegal.</p>
-<pre><code> public interface AppleLocal {
+<pre><code>public interface AppleLocal {
public String grow();
- // This is an AroundInvoke method in the bean class, not a legal
+ // This is an AroundInvoke method in the bean class, not a legal business
method!
+ public Object c(InvocationContext ctx) throws Exception;
+}
</code></pre>
-<p>business method!
- public Object c(InvocationContext ctx) throws Exception;
- }</p>
-
</DIV>
</P>
</TD>
Modified:
websites/staging/openejb/trunk/content/understanding-the-directory-layout.html
==============================================================================
---
websites/staging/openejb/trunk/content/understanding-the-directory-layout.html
(original)
+++
websites/staging/openejb/trunk/content/understanding-the-directory-layout.html
Mon Jul 11 03:37:19 2011
@@ -154,21 +154,20 @@
<DIV id="PageContent">
<p>When freshly unpacked, OpenEJB will look like this:</p>
-<p>{panel}
- openejb-3.0/
- openejb-3.0/logs/
- openejb-3.0/apps/
- openejb-3.0/lib/
- openejb-3.0/lib/<em><several jars></em>
- openejb-3.0/LICENSE.txt
- openejb-3.0/NOTICE.txt
- openejb-3.0/README.txt
- openejb-3.0/bin/
- openejb-3.0/bin/openejb.bat
- openejb-3.0/bin/openejb
- openejb-3.0/conf/
- openejb-3.0/conf/README.txt
-{panel}</p>
+<pre><code>openejb-3.0/
+openejb-3.0/logs/
+openejb-3.0/apps/
+openejb-3.0/lib/
+openejb-3.0/lib/_<several jars>_
+openejb-3.0/LICENSE.txt
+openejb-3.0/NOTICE.txt
+openejb-3.0/README.txt
+openejb-3.0/bin/
+openejb-3.0/bin/openejb.bat
+openejb-3.0/bin/openejb
+openejb-3.0/conf/
+openejb-3.0/conf/README.txt
+</code></pre>
<p><a name="UnderstandingtheDirectoryLayout-Directories"></a></p>
@@ -223,12 +222,10 @@ be created:</p>
admin.properties (network socket for administration)
ejbd.properties (network socket for ejb invocations)
hsql.properties (network socket for hsql client access)
- httpejbd.properties (network socket for ejb invocations over
+ httpejbd.properties (network socket for ejb invocations over http)
+ telnet.properties (network socket for telnet "server")
</code></pre>
-<p>http)
- telnet.properties (network socket for telnet "server") </p>
-
<p>These files can be edited as desired. If at any time you are unhappy with
your changes or simply wish to start over, you can delete or move any of
the files above and a new one containing the default values will be