Author: allee8285
Date: Tue Nov 27 20:12:04 2012
New Revision: 1414367
URL: http://svn.apache.org/viewvc?rev=1414367&view=rev
Log:
CMS migration updates.
Added:
openjpa/site/trunk/content/images/OpenTrader-login.gif (with props)
openjpa/site/trunk/content/images/OpenTrader-screenshot.gif (with props)
Modified:
openjpa/site/trunk/WhoIsWorkingOnWhat.txt
openjpa/site/trunk/content/opentrader.mdtext
openjpa/site/trunk/content/opentraderbuild.mdtext
openjpa/site/trunk/content/opentraderclient.mdtext
openjpa/site/trunk/content/opentradercommunication.mdtext
openjpa/site/trunk/content/opentraderdeploy.mdtext
openjpa/site/trunk/content/opentraderenvironment.mdtext
openjpa/site/trunk/content/opentraderserver.mdtext
Modified: openjpa/site/trunk/WhoIsWorkingOnWhat.txt
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/WhoIsWorkingOnWhat.txt?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/WhoIsWorkingOnWhat.txt (original)
+++ openjpa/site/trunk/WhoIsWorkingOnWhat.txt Tue Nov 27 20:12:04 2012
@@ -85,13 +85,13 @@ delete? openjpa-logo-contest---run-off
done openjpa-release-policy.mdtext
done openjpa-up-close-and-personal.mdtext
done opentraderarchitecture.mdtext
- opentraderbuild.mdtext
- opentraderclient.mdtext
- opentradercommunication.mdtext
- opentraderdeploy.mdtext
- opentraderenvironment.mdtext
- opentrader.mdtext
- opentraderserver.mdtext
+done opentraderbuild.mdtext
+done opentraderclient.mdtext
+done opentradercommunication.mdtext
+done opentraderdeploy.mdtext
+done opentraderenvironment.mdtext
+done opentrader.mdtext
+done opentraderserver.mdtext
overview.mdtext
done performance-guide.mdtext
powered-by.mdtext
Added: openjpa/site/trunk/content/images/OpenTrader-login.gif
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/images/OpenTrader-login.gif?rev=1414367&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openjpa/site/trunk/content/images/OpenTrader-login.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openjpa/site/trunk/content/images/OpenTrader-screenshot.gif
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/images/OpenTrader-screenshot.gif?rev=1414367&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openjpa/site/trunk/content/images/OpenTrader-screenshot.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: openjpa/site/trunk/content/opentrader.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentrader.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentrader.mdtext (original)
+++ openjpa/site/trunk/content/opentrader.mdtext Tue Nov 27 20:12:04 2012
@@ -1,8 +1,10 @@
Title: OpenTrader
+<a name="OpenTrader"></a>
+
h1. OpenTrader: a transactional, web application with Google Web Toolkit,
OpenJPA/Slice on Tomcat
-!OpenTrader-login.gif!
+
OpenTrader is a sample web application to demonstrate integration of Google
@@ -42,8 +44,8 @@ client is using.
* a library of interactive visual widgets such as dialog boxes,
combo-boxes, tables etc. This Java based library realizes the widget as the
elements of a Document Object Model (DOM) for a browser to render them in
-HTML. For example, an instance of
-*com.google.gwt.user.client.ui.FlexTable* urns into a *<table>* in the
+HTML. For example, an instance of **com.google.gwt.user.client.ui.FlexTable**
+urns into a **<table>** in the
displayed HTML page by the framework. The widget library not only provides
rendering support, it also comes with a event dispatching model for the
client application to handle the user interaction.
@@ -71,105 +73,98 @@ favorite browser.
OpenTrader source code is available as one of the OpenJPA examples.
Checkout the source files in a directory.
- {{$ svn checkout
-https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-examples/opentrader}}
+$ svn checkout
<https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-examples/opentrader>
+
+The source tree comes with
- The source tree comes with
* Ant build script: *build.xml* and *build.properties*
* Java source code for OpenTrader application under *src/main/java*
- * GWT module descriptor : *OpenTrader.gwt.xml* under
-*src/main/java/org/apache/openjpa/trader*
- * Persistence descriptor : *persistence.xml* under
-*src/main/resources/META-INF*
- * web descriptor : *web.xml* under
-*src/main/resources/WEB-INF*
- * cascading style sheet : *OpenTrader.css* under
-*src/main/resources/css*
+ * GWT module descriptor : *OpenTrader.gwt.xml* under
*src/main/java/org/apache/openjpa/trader*
+ * Persistence descriptor : *persistence.xml* under
*src/main/resources/META-INF*
+ * web descriptor : *web.xml* under *src/main/resources/WEB-INF*
+ * cascading style sheet : *OpenTrader.css* under *src/main/resources/css*
<a name="OpenTrader-2.Build"></a>
### 2. Build
- To build OpenTrader you will require following other libraries.
- * *Google Web Toolkit*: We have built it with GWT version 2.0.4 which
+To build OpenTrader you will require following other libraries.
+
+ * **Google Web Toolkit**: We have built it with GWT version 2.0.4 which
can be downloaded from
[here](http://google-web-toolkit.googlecode.com/files/gwt-2.0.4.zip)
.
- * *cobogw widget library*: Provides rounded panel not using them seems
+ * **cobogw widget library**: Provides rounded panel not using them seems
to be too un-cool. Download version 1.3.1 from
[here](http://code.google.com/p/cobogw/downloads/list)
.
- * and, of course, *OpenJPA libraries*: OpenJPA now comes with all its
+ * and, of course, **OpenJPA libraries**: OpenJPA now comes with all its
dependencies neatly packaged in a single jar including the JPA API.
Download from [this
site](http://www.apache.org/dyn/closer.cgi/openjpa/2.0.0/apache-openjpa-2.0.0-binary.zip)
.
- h5. 2.1 Configure build environment
+#### 2.1 Configure build environment
- Edit *build.properties* to point to the dependent libraries you
+Edit **build.properties** to point to the dependent libraries you
have downloaded. The file contains the instructions as comments.
- h5. 2.2 Compile with Ant
+#### 2.2 Compile with Ant
- Compile the application. Compilation involves three separate
-compilation process. First the plain old *javac* compilation. Followed by
+Compile the application. Compilation involves three separate
+compilation process. First the plain old **javac** compilation. Followed by
GWT cross-compiler that translates Java code into JavaScript. And finally
OpenJPA compilation that adds few bytecodes to the persistent classes to
manage their persistent behavior (which is also known as bytecode
enhancement).
- *$ ant compile*
+ $ ant compile
- GWT Compiler takes ages. Even though it only compiles for a single
+GWT Compiler takes ages. Even though it only compiles for a single
browser (FireFox). This is controlled by the following directives in the
module descriptor *OpenTrader.gwt.xml*
- {code:xml}
<set-property name="user.agent" value="gecko1_8"/>
- {code}
<a name="OpenTrader-3.Run"></a>
### 3. Run
- You can run either in _hosted_ mode - an environment provided by GWT to
+You can run either in _hosted_ mode - an environment provided by GWT to
run within a Jetty container - or in a proper servlet container such as
Tomcat, Geronimo or GlassFish or even heavy-duty ones such as WebSphere or
Weblogic. In either case, you have to configure the *persistence.xml*
-found under *src/main/resources/META-INF*. This descriptor specifies the
+found under **src/main/resources/META-INF**. This descriptor specifies the
database used by OpenTrader.
- {code:xml}
- <property name="openjpa.ConnectionDriverName"
-value="com.mysql.jdbc.Driver"/>
- <property name="openjpa.ConnectionURL"
-value="jdbc:mysql://localhost/exchange"/>
+ <property name="openjpa.ConnectionDriverName"
value="com.mysql.jdbc.Driver"/>
+ <property name="openjpa.ConnectionURL"
value="jdbc:mysql://localhost/exchange"/>
<property name="openjpa.ConnectionUserName" value="whoami"/>
<property name="openjpa.ConnectionPassword" value="secret"/>
- {code}
- Also edit the *jdbc.driver* in *build.properties* for the
+Also edit the **jdbc.driver** in **build.properties** for the
driver/database you have selected.
- Now, for hosted mode, simply fire Ant as
- *$ ant devmode*
+Now, for hosted mode, simply fire Ant as
- This should again take a very long time and pop open a horrible looking
-Swing console titled *GWT Development Mode*. Go to *Development Mode* tab
-and click *Launch Default Browser*. On my FireFox browser, that opens up
+ $ ant devmode
+
+This should again take a very long time and pop open a horrible looking
+Swing console titled **GWT Development Mode**. Go to **Development Mode** tab
+and click **Launch Default Browser**. On my FireFox browser, that opens up
the page
-*http://127.0.0.1:8888/OpenTrader.html?gwt.codesvr=127.0.0.1:9997*. If
+<http://127.0.0.1:8888/OpenTrader.html?gwt.codesvr=127.0.0.1:9997>. If
all goes well, at this point your browser will prompt you with a welcome
dialog box
-!OpenTrader-login.gif!
+
Once you have entered OpenTrader, the browser application looks like
- !OpenTrader-screenshot.gif!
+
+
In this page, you can place a trade offer to sell or buy some stocks. To
really commit a trade you will need a matching offer. Now as a trader offer
can only match to another trader's offer, you need to open another browser
page with a different name. In FireFox, the tab will show the Trader name.
Now if one Trader makes an offer that match another Trader's offer, then
-clicking the *Sell* or *Buy* button will commit the trade and will
+clicking the **Sell** or **Buy** button will commit the trade and will
appear on the Trading History Window. Also notice the Server Log window.
That will display SQL issued for every action by the server. You will also
notice SQL being logged even if you are not pressing any buttons. Thatis
Modified: openjpa/site/trunk/content/opentraderbuild.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentraderbuild.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentraderbuild.mdtext (original)
+++ openjpa/site/trunk/content/opentraderbuild.mdtext Tue Nov 27 20:12:04 2012
@@ -1,2 +1,4 @@
Title: OpenTraderBuild
+<a name="OpenTraderBuild"></a>
+
Build instructions
Modified: openjpa/site/trunk/content/opentraderclient.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentraderclient.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentraderclient.mdtext (original)
+++ openjpa/site/trunk/content/opentraderclient.mdtext Tue Nov 27 20:12:04 2012
@@ -1,2 +1,4 @@
Title: OpenTraderClient
+<a name="OpenTraderClient"></a>
+
Describe the client side development
Modified: openjpa/site/trunk/content/opentradercommunication.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentradercommunication.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentradercommunication.mdtext (original)
+++ openjpa/site/trunk/content/opentradercommunication.mdtext Tue Nov 27
20:12:04 2012
@@ -1,3 +1,5 @@
Title: OpenTraderCommunication
+<a name="OpenTraderCommunication"></a>
+
Describe the communication between client and server
between client communications
Modified: openjpa/site/trunk/content/opentraderdeploy.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentraderdeploy.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentraderdeploy.mdtext (original)
+++ openjpa/site/trunk/content/opentraderdeploy.mdtext Tue Nov 27 20:12:04 2012
@@ -1 +1,2 @@
Title: OpenTraderDeploy
+<a name="OpenTraderDeploy"></a>
Modified: openjpa/site/trunk/content/opentraderenvironment.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentraderenvironment.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentraderenvironment.mdtext (original)
+++ openjpa/site/trunk/content/opentraderenvironment.mdtext Tue Nov 27 20:12:04
2012
@@ -1,2 +1,4 @@
Title: OpenTraderEnvironment
+<a name="OpenTraderEnvironment"></a>
+
What do we need to download
Modified: openjpa/site/trunk/content/opentraderserver.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/opentraderserver.mdtext?rev=1414367&r1=1414366&r2=1414367&view=diff
==============================================================================
--- openjpa/site/trunk/content/opentraderserver.mdtext (original)
+++ openjpa/site/trunk/content/opentraderserver.mdtext Tue Nov 27 20:12:04 2012
@@ -1,2 +1,4 @@
Title: OpenTraderServer
+<a name="OpenTraderServer"></a>
+
Describe the server