Author: ppoddar
Date: Tue Aug 24 18:55:13 2010
New Revision: 988662

URL: http://svn.apache.org/viewvc?rev=988662&view=rev
Log:
Add initial resources

Added:
    openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/
    
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml
   (with props)
    
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html   
(with props)
    openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/
    
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml   
(with props)
    openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/
    
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/login.gif   
(with props)
    
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/logo.gif   
(with props)

Added: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml?rev=988662&view=auto
==============================================================================
--- 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml
 (added)
+++ 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml
 Tue Aug 24 18:55:13 2010
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    version="1.0">
+    <persistence-unit name="slice-exchange">
+       
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+       <class>org.apache.openjpa.trader.domain.Tradable</class>
+       <class>org.apache.openjpa.trader.domain.Ask</class>
+       <class>org.apache.openjpa.trader.domain.Bid</class>
+       <class>org.apache.openjpa.trader.domain.Trader</class>
+       <class>org.apache.openjpa.trader.domain.Trade</class>
+       <class>org.apache.openjpa.trader.domain.Stock</class>
+       
+        <properties>
+        <property name="openjpa.BrokerFactory"             value="slice"/>
+        <property name="openjpa.ConnectionDriverName"      
value="com.mysql.jdbc.Driver"/>
+        <property name="openjpa.ConnectionUserName"        value="demo"/>
+        <property name="openjpa.ConnectionPassword"        value="pwd"/>
+        
+        <property name="openjpa.slice.Names"                
value="slice1,slice2,slice3"/>
+        <property name="openjpa.slice.DistributionPolicy"   
value="org.apache.openjpa.trader.service.slice.SectorDistributionPolicy"/>
+        <property name="openjpa.slice.ReplicatedTypes"      
value="org.apache.openjpa.trader.domain.Trader"/>  
+                                   
+        <property name="openjpa.slice.slice1.ConnectionURL" 
value="jdbc:mysql://localhost/sector1"/>
+        <property name="openjpa.slice.slice2.ConnectionURL" 
value="jdbc:mysql://localhost/sector2"/>
+        <property name="openjpa.slice.slice3.ConnectionURL" 
value="jdbc:mysql://localhost/sector3"/>
+        
+        
+        
+        <property name="openjpa.Multithreaded"            value="true"/>
+        <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=True)"/>
+        
+        
+        <property name="openjpa.DynamicEnhancementAgent" value="false"/>
+        <property name="openjpa.RuntimeUnenhancedClasses" value="unsupported"/>
+        
+        
+        <property name="openjpa.ConnectionFactoryProperties" 
value="PrintParameters=true"/>
+        </properties>
+    </persistence-unit>
+    
+    
+    <persistence-unit name="exchange">
+       
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+       <class>org.apache.openjpa.trader.domain.Tradable</class>
+       <class>org.apache.openjpa.trader.domain.Ask</class>
+       <class>org.apache.openjpa.trader.domain.Bid</class>
+       <class>org.apache.openjpa.trader.domain.Trader</class>
+       <class>org.apache.openjpa.trader.domain.Trade</class>
+       <class>org.apache.openjpa.trader.domain.Stock</class>
+        <properties>
+        <property name="openjpa.ConnectionDriverName" 
value="com.mysql.jdbc.Driver"/>
+        <property name="openjpa.ConnectionURL" 
value="jdbc:mysql://localhost/exchange"/>
+        <property name="openjpa.ConnectionUserName" value="root"/>
+        <property name="openjpa.ConnectionPassword" value=""/>
+        <property name="openjpa.Multithreaded" value="true"/>
+        <property name="openjpa.DynamicEnhancementAgent" value="false"/>
+        <property name="openjpa.RuntimeUnenhancedClasses" value="unsupported"/>
+        <property name="openjpa.ConnectionFactoryProperties" 
value="PrintParameters=true"/>
+        
+        <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=True)"/>
+        </properties>
+    </persistence-unit>
+    
+</persistence>

Propchange: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html?rev=988662&view=auto
==============================================================================
--- 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html 
(added)
+++ 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html 
Tue Aug 24 18:55:13 2010
@@ -0,0 +1,60 @@
+<!DOCTYPE HTML>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!--  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" -->
+
+<!-- The DOCTYPE declaration above will set the    -->
+<!-- browser's rendering engine into               -->
+<!-- "Quirks Mode", required for GXT. Replacing this declaration  -->
+<!-- with a "Quirks Mode" doctype may lead to some -->
+<!-- differences in layout.                        -->
+
+<html>
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+    <!--                                                               -->
+    <!-- Consider inlining CSS to reduce the number of requested files -->
+    <!--                                                               -->
+    <link type="text/css" rel="stylesheet" href="css/OpenTrader.css">
+    
+    <title>OpenTrader</title>
+    
+    <!--                                                      -->
+    <!-- This script loads the compiled module.               -->
+    <!-- Any GWT meta tags, must be added before this line.   -->
+    <!--                                           -->
+    <script type="text/javascript" language="javascript" 
src="opentrader/opentrader.nocache.js"></script>
+  </head>
+
+  <body>
+
+    <!-- History support                                       -->
+    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' 
style="position:absolute;width:0;height:0;border:0"></iframe>
+    
+    <noscript>
+      <div style="width: 22em; position: absolute; left: 50%; margin-left: 
-11em; color: red; background-color: white; border: 1px solid red; padding: 
4px; font-family: sans-serif">
+        Your web browser must have JavaScript enabled
+        in order for this application to display correctly.
+      </div>
+    </noscript>
+   
+  </body>
+</html>

Propchange: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/OpenTrader.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml?rev=988662&view=auto
==============================================================================
--- 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml 
(added)
+++ 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml 
Tue Aug 24 18:55:13 2010
@@ -0,0 +1,46 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
+       <display-name>OpenTrader</display-name>
+       <welcome-file-list>
+               <welcome-file>OpenTrader.html</welcome-file>
+       </welcome-file-list>
+       <distributable />
+
+
+       <servlet>
+               <servlet-name>opentrader</servlet-name>
+               
<servlet-class>org.apache.openjpa.trader.server.TradingServiceAdapterImpl</servlet-class>
+               <init-param>
+                       <param-name>persistence.unit</param-name>
+                       <param-value>exchange</param-value>
+               </init-param>
+               <init-param>
+                       <param-name>mock</param-name>
+                       <param-value>false</param-value>
+               </init-param>
+       </servlet>
+       <servlet-mapping>
+               <servlet-name>opentrader</servlet-name>
+               <url-pattern>/opentrader/trade</url-pattern>
+       </servlet-mapping>
+</web-app>

Propchange: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/login.gif
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/login.gif?rev=988662&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/login.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/logo.gif
URL: 
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/logo.gif?rev=988662&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
openjpa/trunk/openjpa-examples/opentrader/src/main/resources/images/logo.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif


Reply via email to