iterator = temp.iterator(); iterator.hasNext();) {
58 | Message message = iterator.next();
59 |
60 | jObjectBuilder.add("change" + i + "_stock", message.getStringProperty("symbol"));
61 | jObjectBuilder.add("change" + i + "_price","$" + message.getStringProperty("price"));
62 |
63 | BigDecimal change = new BigDecimal(message.getStringProperty("price")).subtract(new BigDecimal(message.getStringProperty("oldPrice")));
64 | change.setScale(2, RoundingMode.HALF_UP);
65 |
66 | jObjectBuilder.add("change" + i + "_change", change.toString());
67 |
68 | i++;
69 | }
70 | }
71 | catch (Exception e) {
72 | e.printStackTrace();
73 | }
74 |
75 | return jObjectBuilder.build();
76 | }
77 |
78 | public static boolean isEmpty() {
79 | return stockChanges.isEmpty();
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Ant-Version: Apache Ant 1.7.1
3 | Class-Path: daytrader-ee7-ejb.jar
4 | Created-By: 2.6 (IBM Corporation)
5 |
6 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingCDIJSF.xhtml:
--------------------------------------------------------------------------------
1 |
16 |
18 |
23 |
24 |
25 | DayTrader PingJSF
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | Hit Count: #{pingCDIJSFBean.hitCount}
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingHtml.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 | PingHTML.html
19 |
20 |
21 |
22 |
23 | PING HTML:
24 |
25 |
26 | Hello World
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingJsp.jsp:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 | PingJsp
23 |
24 |
25 | <%!int hitCount = 0;
26 | String initTime = new java.util.Date().toString();%>
27 |
28 |
29 | PING JSP:
30 |
31 | Init time: <%=initTime%>
32 | <%
33 | hitCount++;
34 | %>
35 |
36 | Hit Count: <%=hitCount%>
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingServlet2Jsp.jsp:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | PingJsp
23 |
24 |
25 | <%!String initTime = (new java.util.Date()).toString();%>
26 |
29 |
30 | Ping Servlet2JSP:
31 |
32 | Init time: <%=initTime%>
33 |
34 |
35 | Message from Servlet:
36 | <%= ab.getMsg() %>
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingWebSocketBinary.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 | WebSocket Primitive - PingWebSocketBinary
20 |
21 |
22 |
23 |
83 |
84 |
85 |
91 |
92 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingWebSocketTextAsync.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 | WebSocket Primitive - PingWebSocketTextAsync
20 |
21 |
22 |
23 |
81 |
82 |
83 |
89 |
90 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/PingWebSocketTextSync.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 | WebSocket Primitive - PingWebSocketTextSync
20 |
21 |
22 |
23 |
81 |
82 |
83 |
89 |
90 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WAS_V7_64-bit_performance.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/WAS_V7_64-bit_performance.pdf
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/classes/META-INF/DEPENDENCIES:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------
2 | // Transitive dependencies of this project determined from the
3 | // maven pom organized by organization.
4 | // ------------------------------------------------------------------
5 |
6 | DayTrader :: Web Application
7 |
8 |
9 | From: 'an unknown organization'
10 | - Unnamed - taglibs:standard:jar:1.1.1 taglibs:standard:jar:1.1.1
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/classes/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 |
2 | DayTrader :: Web Application
3 | Copyright 2005-2010 Apache Software Foundation
4 |
5 | This product includes software developed at
6 | The Apache Software Foundation (http://www.apache.org/).
7 |
8 |
9 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 |
24 |
25 | jdbc/TradeDataSource
26 |
27 | com.ibm.websphere.samples.daytrader.entities.AccountDataBean
28 | com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean
29 | com.ibm.websphere.samples.daytrader.entities.HoldingDataBean
30 | com.ibm.websphere.samples.daytrader.entities.OrderDataBean
31 | com.ibm.websphere.samples.daytrader.entities.QuoteDataBean
32 | true
33 | NONE
34 |
35 |
36 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/classes/build.properties:
--------------------------------------------------------------------------------
1 | ## Licensed to the Apache Software Foundation (ASF) under one or more
2 | ## contributor license agreements. See the NOTICE file distributed with
3 | ## this work for additional information regarding copyright ownership.
4 | ## The ASF licenses this file to You under the Apache License, Version 2.0
5 | ## (the "License"); you may not use this file except in compliance with
6 | ## the License. You may obtain a copy of the License at
7 | ##
8 | ## http://www.apache.org/licenses/LICENSE-2.0
9 | ##
10 | ## Unless required by applicable law or agreed to in writing, software
11 | ## distributed under the License is distributed on an "AS IS" BASIS,
12 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | ## See the License for the specific language governing permissions and
14 | ## limitations under the License.
15 |
16 | ejb_version=${pom.version}
17 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/ibm-web-bnd.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/WEB-INF/ibm-web-ext.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/displayQuote.jsp:
--------------------------------------------------------------------------------
1 |
16 | <%@ page
17 | import="java.math.BigDecimal,com.ibm.websphere.samples.daytrader.TradeServices,com.ibm.websphere.samples.daytrader.TradeAction,com.ibm.websphere.samples.daytrader.entities.QuoteDataBean,com.ibm.websphere.samples.daytrader.util.Log,com.ibm.websphere.samples.daytrader.util.FinancialUtils"
18 | session="true" isThreadSafe="true" isErrorPage="false"%>
19 | <%
20 | String symbol = request.getParameter("symbol");
21 | TradeServices tAction = null;
22 | tAction = new TradeAction();
23 | try {
24 | QuoteDataBean quoteData = tAction.getQuote(symbol);
25 | %>
26 |
27 | <%=FinancialUtils.printQuoteLink(quoteData.getSymbol())%>
28 | <%=quoteData.getCompanyName()%>
29 | <%=quoteData.getVolume()%>
30 | <%=quoteData.getLow() + " - " + quoteData.getHigh()%>
31 | <%=quoteData.getOpen()%>
32 | $ <%=quoteData.getPrice()%>
33 | <%=FinancialUtils.printGainHTML(new BigDecimal(quoteData.getChange()))%>
34 | <%=FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen()))%>
35 |
36 |
41 |
42 |
43 |
44 | <%
45 | } catch (Exception e) {
46 | Log.error("displayQuote.jsp exception. Check that symbol: " + symbol + " exists in the database.", e);
47 | }
48 | %>
49 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/docs/benchmarking.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 | Benchmarking Details
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | Benchmarking
31 |
32 |
33 |
34 |
35 |
36 | DayTrader provides two servlets to create a workload for benchmarking: TradeApp servlet and TradeScenario servlet.
37 | In either case, the load generation tool used to drive the Trade workload must provide cookie support to handle
38 | HTTP sessions.
39 | TradeApp servlet provides the standard web interface and
40 | can be accessed with the Go Trade! link. Driving benchmark load using this
41 | interface requires a sophisticated web load
42 | generator that is capable of filling HTML
43 | forms and posting dynamic data.
44 | TradeScenario servlet emulates a population of web users by generating
45 | a specific Trade operation for a randomly
46 | chosen user on each access to the URL. Test
47 | this servlet by clicking Trade Scenario and hit "Reload" on your browser to step through a Trade Scenario.
48 | To benchmark using this URL aim your favorite web load generator at the
49 | Trade Scenario URL and fire away.
50 | There is a drawback to using the Trade Scenario
51 | servlet to drive the workload versus using a series of more complicated
52 | load scripts. As previously mentioned, the scenario
53 | servlet is responsible for managing clients and emulating user
54 | operations by dispatching simple client requests to complex Trade
55 | actions. This causes the application server to spend a large percentage
56 | of time performing work that would typically be handled by a client or
57 | a more complex load driver. Consequently, performance numbers are
58 | artificially deflated when using Trade Scenario servlet as compared to
59 | driving the workload directly.
60 |
61 |
62 | Web Primitive Benchmarking
63 | A set of automated Web Primitives is also provided. The web primitives leverage the DayTrader infrastructure to test specific features of the web application development environment. This provides basic workloads for servlets, JSPs, EJBs, MDBs and more. The Web Primitives are installed automatically with the daytrader configuration archive.
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/docs/documentation.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Technical Documentation
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | Technical Documentation
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | Documents below provide documentation on Trade application design, runtime
40 | characteristics and FAQs.
41 |
42 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/docs/tradeversion.html:
--------------------------------------------------------------------------------
1 |
16 |
17 | DayTrader Version
18 |
19 | IBM WebSphere Application Server Samples - DayTrader 7 (Version 7.0.11)
20 | Full EE 7 Spec Compliant
21 | Date: 20150917
22 | Contact: jdmcclur@us.ibm.com
23 |
24 |
25 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/favicon.ico
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/footer.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 | daytrader2_matts_mods
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/DayTraderHead_blue.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/DayTraderHead_blue.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/DayTraderHead_red.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/DayTraderHead_red.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/Thumbs.db
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/about.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/about.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/account.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/account.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/arrowdown.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/arrowdown.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/arrowup.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/arrowup.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/bottomRedBar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/bottomRedBar.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/configuration.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/configuration.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/dayTraderLogo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/dayTraderLogo.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/daytrader_simple_arch.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/daytrader_simple_arch.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/faq.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/faq.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/graph.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/graph.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/home.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/home.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/homeBanner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/homeBanner.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/line.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/line.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/logout.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/logout.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/lower_banner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/lower_banner.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/menuHome.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/menuHome.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/nav_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/nav_bg.png
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/portfolio.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/portfolio.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/primitives.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/primitives.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/quotes.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/quotes.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/reports.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/reports.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/spacer.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/spacer.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/ticker-anim.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/ticker-anim.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/topRedBar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/topRedBar.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/topline.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/topline.jpg
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/tradeOverview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/tradeOverview.png
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/images/tradingAndPortfolios.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7-web/src/main/webapp/images/tradingAndPortfolios.gif
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 | DayTrader
22 |
23 |
25 |
27 |
29 |
31 |
32 |
33 | Need browser which supports frames to see this page
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/leftMenu.html:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 | Leftmenu
21 |
22 |
23 |
24 |
25 |
26 |
27 |
29 | Overview
30 |
31 |
33 |
34 | Benchmarking
36 |
37 |
38 | Configuration
40 |
41 |
42 | Go Trade!
44 |
45 |
46 | Web Primitives
48 |
49 |
50 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/properties/daytrader.properties:
--------------------------------------------------------------------------------
1 | # (C) Copyright IBM Corporation 2015.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 | runtimeMode=0
15 | useRemoteEJBInterface=false
16 | maxUsers=15000
17 | maxQuotes=10000
18 | publishQuotePriceChange=true
19 | percentSentToWebsocket=10
20 | displayOrderAlerts=true
21 | cachingType=1
22 | cacheSize=100000
23 | orderProcessingMode=0
24 | webInterface=0
25 | marketSummaryInterval=20
26 | primIterations=1
27 | longRun=true
28 | trace=false
29 | actionTrace=false
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/quoteDataPrimitive.jsp:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 | Quote Data Primitive (PingServet2Session2Entity2JSP)
23 |
24 |
25 | <%@ page
26 | import="com.ibm.websphere.samples.daytrader.entities.QuoteDataBean,com.ibm.websphere.samples.daytrader.util.FinancialUtils"
27 | session="false" isThreadSafe="true" isErrorPage="false"%>
28 | <%!int hitCount = 0;
29 | String initTime = new java.util.Date().toString();%>
30 | <%
31 | QuoteDataBean quoteData = (QuoteDataBean) request.getAttribute("quoteData");
32 | %>
33 |
34 |
35 | Quote Data Primitive
36 | (PingServlet2Session2EntityJSP):
37 |
38 | Init time: <%=initTime%>
39 | <%
40 | hitCount++;
41 | %>
42 |
43 | Hit Count: <%=hitCount%>
44 |
45 |
46 | Quote Information
47 |
48 | <%=quoteData.toHTML()%>
49 |
50 |
51 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/sample.jsp:
--------------------------------------------------------------------------------
1 |
16 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
17 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
18 | <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
19 | <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
20 |
21 |
22 |
23 | Hello world JSP on
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/daytrader-ee7-web/src/main/webapp/style.css:
--------------------------------------------------------------------------------
1 | /*======================================================================
2 | * (C) Copyright IBM Corporation 2015.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | ======================================================================*/
16 | tr th td body {
17 | font-size:12pt;
18 | }
19 |
20 | A:HOVER {
21 | text-decoration: underline; color: red;
22 | }
23 |
24 | A:ACTIVE {
25 | color: red;
26 | font-weight: bold
27 | }
28 |
29 | .table{
30 | border-collapse:collapse;
31 | border:1px solid #000000;
32 | }
33 |
34 | .tableHeader{
35 | text-align:center;
36 | background:none repeat scroll 0 0 #B5B5B5;
37 | border:1px solid #000000;
38 | padding:10px;
39 | font-size:12px;
40 | }
41 |
42 | .tableHeaderMarket{
43 | text-align:center;
44 | background:none repeat scroll 0 0 #000000;
45 | border:1px solid #000000;
46 | padding:10px;
47 | font-size:14px;
48 | }
49 |
50 | .tableOddRow{
51 | text-align:center;
52 | font-size:12px;
53 | font-weight: none;
54 | border:1px solid #000000;
55 | background:none repeat scroll 0 0 #FFFFFF;
56 | }
57 |
58 | .tableEvenRow{
59 | text-align:center;
60 | font-size:12px;
61 | font-weight: none;
62 | border:1px solid #000000;
63 | background:none repeat scroll 0 0 #D3D3D3;
64 | }
65 | .tableColumn{
66 | border:1px solid #000000;
67 | }
68 |
69 | .tableHeader
70 | {
71 | background:none repeat scroll 0 0 #FFFFFF;
72 | border-collapse: collapse;
73 | border-spacing: 0px;
74 | }
75 | .tableHeader td
76 | {
77 | padding: 0px 0px;
78 | }
79 | .tableHeader tr
80 | {
81 | padding: 0px 0px;
82 | }
--------------------------------------------------------------------------------
/daytrader-ee7/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /build/
3 | /bin/
4 | .classpath
5 | .project
6 | /.settings/
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/README_DO_NOT_TOUCH_FILES.txt:
--------------------------------------------------------------------------------
1 |
2 | # *************************************************************************
3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! ***
4 | # *** FILES IN THIS DIRECTORY AND SUBDIRECTORIES CONSTITUTE A DERBY ***
5 | # *** DATABASE, WHICH INCLUDES THE DATA (USER AND SYSTEM) AND THE ***
6 | # *** FILES NECESSARY FOR DATABASE RECOVERY. ***
7 | # *** EDITING, ADDING, OR DELETING ANY OF THESE FILES MAY CAUSE DATA ***
8 | # *** CORRUPTION AND LEAVE THE DATABASE IN A NON-RECOVERABLE STATE. ***
9 | # *************************************************************************
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/log/README_DO_NOT_TOUCH_FILES.txt:
--------------------------------------------------------------------------------
1 |
2 | # *************************************************************************
3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! ***
4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE RECOVERY ***
5 | # *** SYSTEM. EDITING, ADDING, OR DELETING FILES IN THIS DIRECTORY ***
6 | # *** WILL CAUSE THE DERBY RECOVERY SYSTEM TO FAIL, LEADING TO ***
7 | # *** NON-RECOVERABLE CORRUPT DATABASES. ***
8 | # *************************************************************************
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/log/log.ctrl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/log/log.ctrl
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/log/log286.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/log/log286.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/log/logmirror.ctrl:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/log/logmirror.ctrl
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/README_DO_NOT_TOUCH_FILES.txt:
--------------------------------------------------------------------------------
1 |
2 | # *************************************************************************
3 | # *** DO NOT TOUCH FILES IN THIS DIRECTORY! ***
4 | # *** FILES IN THIS DIRECTORY ARE USED BY THE DERBY DATABASE TO STORE ***
5 | # *** USER AND SYSTEM DATA. EDITING, ADDING, OR DELETING FILES IN THIS ***
6 | # *** DIRECTORY WILL CORRUPT THE ASSOCIATED DERBY DATABASE AND MAKE ***
7 | # *** IT NON-RECOVERABLE. ***
8 | # *************************************************************************
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c10.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c10.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c101.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c101.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c111.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c111.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c121.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c121.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c130.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c130.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c141.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c141.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c150.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c150.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c161.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c161.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c171.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c171.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c180.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c180.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c191.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c191.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1a1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1a1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1b1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1b1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1c0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1c0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1d1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1d1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1e0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1e0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c1f1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c1f1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c20.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c20.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c200.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c200.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c211.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c211.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c221.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c221.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c230.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c230.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c241.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c241.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c251.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c251.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c260.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c260.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c271.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c271.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c281.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c281.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c290.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c290.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2a1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2a1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2b1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2b1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2c1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2c1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2d0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2d0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2e1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2e1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c2f0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c2f0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c300.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c300.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c31.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c31.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c311.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c311.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c321.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c321.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c331.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c331.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c340.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c340.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c351.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c351.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c361.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c361.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c371.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c371.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c380.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c380.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c391.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c391.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3a1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3a1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3b1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3b1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3c0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3c0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3d1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3d1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3e1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3e1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c3f1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c3f1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c400.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c400.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c41.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c41.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c411.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c411.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c421.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c421.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c430.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c430.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c441.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c441.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c451.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c451.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c461.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c461.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c470.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c470.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c481.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c481.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c490.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c490.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4a1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4a1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4b0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4b0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4c1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4c1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4d0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4d0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4e1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4e1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c4f1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c4f1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c51.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c51.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c60.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c60.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c71.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c71.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c720.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c720.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c731.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c731.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c740.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c740.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c751.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c751.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c760.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c760.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c771.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c771.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c780.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c780.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c791.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c791.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7a0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7a0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7b1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7b1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7c0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7c0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7d1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7d1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7e1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7e1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c7f1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c7f1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c801.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c801.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c81.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c81.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c811.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c811.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c821.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c821.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/c90.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/c90.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/ca1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/ca1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/cb1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/cb1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/cc0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/cc0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/cd1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/cd1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/ce1.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/ce1.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/seg0/cf0.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/daytrader-ee7/resources/data/tradedb/seg0/cf0.dat
--------------------------------------------------------------------------------
/daytrader-ee7/resources/data/tradedb/service.properties:
--------------------------------------------------------------------------------
1 | #/Users/jdmcclur/git/sample.daytrader8/target/liberty/wlp/usr/shared/resources/data/tradedb
2 | # ********************************************************************
3 | # *** Please do NOT edit this file. ***
4 | # *** CHANGING THE CONTENT OF THIS FILE MAY CAUSE DATA CORRUPTION. ***
5 | # ********************************************************************
6 | #Fri Jan 11 09:46:30 CST 2019
7 | SysschemasIndex2Identifier=225
8 | SyscolumnsIdentifier=144
9 | SysconglomeratesIndex1Identifier=49
10 | SysconglomeratesIdentifier=32
11 | SyscolumnsIndex2Identifier=177
12 | SysschemasIndex1Identifier=209
13 | SysconglomeratesIndex3Identifier=81
14 | SystablesIndex2Identifier=129
15 | SyscolumnsIndex1Identifier=161
16 | derby.serviceProtocol=org.apache.derby.database.Database
17 | SysschemasIdentifier=192
18 | derby.storage.propertiesId=16
19 | SysconglomeratesIndex2Identifier=65
20 | derby.serviceLocale=en_US
21 | SystablesIdentifier=96
22 | SystablesIndex1Identifier=113
23 | #--- last line, don't put anything after this line ---
24 |
--------------------------------------------------------------------------------
/daytrader-ee7/src/main/application/META-INF/DEPENDENCIES:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------
2 | // Transitive dependencies of this project determined from the
3 | // maven pom organized by organization.
4 | // ------------------------------------------------------------------
5 |
6 | DayTrader :: Enterprise Application
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/daytrader-ee7/src/main/liberty/config/server.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ejb-3.2
4 | servlet-3.1
5 | jsf-2.2
6 | jpa-2.1
7 | mdb-3.2
8 | wasJmsServer-1.0
9 | wasJmsClient-2.0
10 | cdi-1.2
11 | websocket-1.1
12 | concurrent-1.0
13 | jsonp-1.0
14 | beanValidation-1.1
15 | localConnector-1.0
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/daytrader-ee7/src/main/liberty/config/server_db2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ejb-3.2
4 | servlet-3.1
5 | jsf-2.2
6 | jpa-2.1
7 | mdb-3.2
8 | wasJmsServer-1.0
9 | wasJmsClient-2.0
10 | cdi-1.2
11 | websocket-1.1
12 | concurrent-1.0
13 | jsonp-1.0
14 | beanValidation-1.1
15 | localConnector-1.0
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/daytrader-ee7/src/main/liberty/config/server_db2_container.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ejb-3.2
4 | servlet-3.1
5 | jsf-2.2
6 | jpa-2.1
7 | mdb-3.2
8 | wasJmsServer-1.0
9 | wasJmsClient-2.0
10 | cdi-1.2
11 | websocket-1.1
12 | concurrent-1.0
13 | jsonp-1.0
14 | beanValidation-1.1
15 | localConnector-1.0
16 | mpHealth-1.0
17 | transportSecurity-1.0
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/db2jars/db2jcc4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WASdev/sample.daytrader7/a17f2b02b3402a6f8eb2f21cf57c75c8a7783cd5/db2jars/db2jcc4.jar
--------------------------------------------------------------------------------
/deploy/daytrader7-deploy.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: apps.openliberty.io/v1
2 | kind: OpenLibertyApplication
3 | metadata:
4 | name: daytrader7
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "3"
7 | spec:
8 | applicationImage: 'docker.io/dguinan/sample-daytrader7:latest'
9 | route:
10 | path: /daytrader
11 | expose: true
12 | service:
13 | portName: liveness-port
14 | port: 9443
15 | type: ClusterIP
16 | probes:
17 | startup: {}
18 | liveness: {}
19 | readiness: {}
20 | env:
21 | - name: tradeDbHost
22 | value: trade-db2
23 | - name: tradeDbPort
24 | value: "50000"
25 | - name: tradeDbName
26 | value: TRADEDB
27 | - name: dbUser
28 | value: db2inst1
29 | - name: dbPass
30 | valueFrom:
31 | secretKeyRef:
32 | name: db-credential
33 | key: dbpw
34 | pullPolicy: Always
35 | resources:
36 | requests:
37 | cpu: 500m
38 | memory: 1Gi
39 | limits:
40 | cpu: 500m
41 | memory: 2Gi
42 |
--------------------------------------------------------------------------------
/deploy/db2-role-n-sa.yaml:
--------------------------------------------------------------------------------
1 | kind: ServiceAccount
2 | apiVersion: v1
3 | metadata:
4 | name: mysvcacct
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "0"
7 | ---
8 | kind: RoleBinding
9 | apiVersion: rbac.authorization.k8s.io/v1
10 | metadata:
11 | name: 'system:openshift:scc:privileged'
12 | subjects:
13 | - kind: ServiceAccount
14 | name: default
15 | - kind: ServiceAccount
16 | name: mysvcacct
17 | roleRef:
18 | apiGroup: rbac.authorization.k8s.io
19 | kind: ClusterRole
20 | name: 'system:openshift:scc:privileged'
21 |
--------------------------------------------------------------------------------
/deploy/db2-secret.yaml:
--------------------------------------------------------------------------------
1 | kind: Secret
2 | apiVersion: v1
3 | metadata:
4 | name: db-credential
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "1"
7 | data:
8 | dbpw: cGFzc3cwcmQ=
9 | type: Opaque
10 |
--------------------------------------------------------------------------------
/deploy/tradedb-service.yaml:
--------------------------------------------------------------------------------
1 | kind: Service
2 | apiVersion: v1
3 | metadata:
4 | name: trade-db2
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "2"
7 | labels:
8 | app: trade-db2
9 | spec:
10 | ports:
11 | - name: 50000-tcp
12 | protocol: TCP
13 | port: 50000
14 | targetPort: 50000
15 | selector:
16 | app: trade-db2
17 | deployment: trade-db2
18 | type: ClusterIP
19 | sessionAffinity: None
20 |
--------------------------------------------------------------------------------
/deploy/tradedb.yaml:
--------------------------------------------------------------------------------
1 | kind: Deployment
2 | apiVersion: apps/v1
3 | metadata:
4 | name: trade-db2
5 | annotations:
6 | argocd.argoproj.io/sync-wave: "2"
7 | labels:
8 | app: trade-db2
9 | spec:
10 | replicas: 1
11 | selector:
12 | matchLabels:
13 | app: trade-db2
14 | deployment: trade-db2
15 | template:
16 | metadata:
17 | labels:
18 | app: trade-db2
19 | deployment: trade-db2
20 | spec:
21 | containers:
22 | - resources: {}
23 | terminationMessagePath: /dev/termination-log
24 | name: trade-db2
25 | env:
26 | - name: DB2INST1_PASSWORD
27 | valueFrom:
28 | secretKeyRef:
29 | name: db-credential
30 | key: dbpw
31 | - name: LICENSE
32 | value: accept
33 | securityContext:
34 | capabilities:
35 | privileged: true
36 | readOnlyRootFilesystem: false
37 | allowPrivilegeEscalation: true
38 | ports:
39 | - containerPort: 50000
40 | protocol: TCP
41 | imagePullPolicy: Always
42 | terminationMessagePolicy: File
43 | image: docker.io/tamdocker/trade7db:latest
44 | restartPolicy: Always
45 | terminationGracePeriodSeconds: 30
46 | dnsPolicy: ClusterFirst
47 | schedulerName: default-scheduler
48 | serviceAccountName: mysvcacct
49 | serviceAccount: mysvcacct
50 |
--------------------------------------------------------------------------------
/docs/Downloading-WAS-Liberty.md:
--------------------------------------------------------------------------------
1 | There are lots of ways to get your hands on WAS Liberty. Note that you will need a version of Liberty that has support for JAX-RS 2.0, CDI 1.2, EJB Lite 3.2, and Concurrency Utilities for this sample (Java EE 7 Web Profile will do).
2 |
3 | To download just the WAS Liberty runtime, go to the [wasdev.net Downloads page][wasdev], and choose between the [latest version of the runtime][wasdev-latest] or the [latest beta][wasdev-beta]. You can also download Liberty via [Eclipse and WDT](/docs/Downloading-WAS-Liberty.md)
4 |
5 | There are a few options to choose from (especially for the beta drivers). Choose the one that is most appropriate.
6 | * There are convenience archives for downloading pre-defined content groupings
7 | * You can add additional features from the repository using the [installUtility][installUtility] or the [maven][maven-plugin]/[Gradle][gradle-plugin] plugins.
8 |
9 | [wasdev]: https://developer.ibm.com/wasdev/downloads/
10 | [wasdev-latest]: https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/
11 | [wasdev-beta]: https://developer.ibm.com/wasdev/downloads/liberty-profile-beta/
12 | [installUtility]: http://www-01.ibm.com/support/knowledgecenter/#!/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_command_installutility.html
13 | [maven-plugin]: https://github.com/WASdev/ci.maven
14 | [gradle-plugin]: https://github.com/WASdev/ci.gradle
15 |
16 | ## Tips
17 |
18 | * If you use bash, consider trying the [command line tools](https://github.com/WASdev/util.bash.completion), which provide tab-completion for the server and other commands.
19 |
--------------------------------------------------------------------------------
/docs/Starting-the-server.md:
--------------------------------------------------------------------------------
1 | You can use the [Gradle](#running-with-gradle) or [maven](#running-with-maven) to control and manipulate the server for use in automated builds to support continuous integration.
2 |
3 | ## Running with Gradle
4 |
5 | The [Gradle plugin](https://github.com/WASdev/ci.gradle) can manage the server using the following operations:
6 |
7 | * TODO: more here. I know, you're impatient. Stop gnashing your teeth at me.
8 |
9 | ## Running with maven
10 |
11 | The [maven plugin](https://github.com/WASdev/ci.maven) can manage the server using the following operations:
12 |
13 | * TODO: more here. I know, you're impatient. Stop gnashing your teeth at me.
14 |
15 | ## Additional Notes
16 |
17 | :star: *Note:* The maven target and Gradle clean task will clean server output (logs and workarea, etc) from the async-jaxrs-wlpcfg directory, however, if you wanted to maintain strict separation between what is checked into async-jaxrs-wlpcfg and what is generated by a running server, you could also specify the WLP_OUTPUT_DIR environment variable, e.g. into the maven target directory.
18 |
19 | ```bash
20 | $ export WLP_OUTPUT_DIR=${WLP_USER_DIR}/target
21 | ```
22 |
--------------------------------------------------------------------------------
/docs/Using-cmd-line.md:
--------------------------------------------------------------------------------
1 | ## Building and running the sample using the command line
2 |
3 | ### Clone Git Repo
4 | :pushpin: [Switch to Eclipse example](/docs/Using-WDT.md/#clone-git-repo)
5 |
6 | ```bash
7 |
8 | $ git clone https://github.com/WASdev/sample.daytrader7.git
9 |
10 | ```
11 |
12 | ### Building the sample
13 | :pushpin: [Switch to Eclipse example](/docs/Using-WDT.md/#building-the-sample-in-eclipse)
14 |
15 | This sample can be built using either [Gradle](#gradle-commands) or [Maven](#apache-maven-commands).
16 |
17 | ###### [Gradle](http://gradle.org/) commands
18 |
19 | ```bash
20 | $ gradle build
21 | ```
22 |
23 | If you want to also run the functional tests then you need to [Download WAS Liberty](/docs/Downloading-WAS-Liberty.md) and set the libertyRoot property in the gradle.properties file to point to your Liberty install.
24 |
25 | ###### [Apache Maven](http://maven.apache.org/) commands
26 |
27 | ```bash
28 | $ mvn install
29 | ```
30 |
31 | If you want to also run the functional tests then you need to [Download WAS Liberty](/docs/Downloading-WAS-Liberty.md) and pass in the location of your install as the system property libertyRoot:
32 |
33 | ```bash
34 | $ mvn -DlibertyRoot= install
35 | ```
36 |
37 | The built ear file is copied into the apps directory of the server configuration located in the daytrader-ee7-wlpcfg directory:
38 |
39 | ```text
40 | daytrader-ee7-wlpcfg
41 | +- servers
42 | +- daytrader-ee7-wlpcfg <-- specific server configuration
43 | +- server.xml <-- server configuration
44 | +- apps <- directory for applications
45 | +- daytrader-ee7.ear <- sample application
46 | +- logs <- created by running the server locally
47 | +- workarea <- created by running the server locally
48 | ```
49 |
50 | ### Running the application locally
51 | :pushpin: [Switch to Eclipse example](/docs/Using-WDT.md/#running-the-application-locally)
52 |
53 | Pre-requisite: [Download WAS Liberty](/docs/Downloading-WAS-Liberty.md)
54 |
55 | Use the following to start the server and run the application:
56 |
57 | ```bash
58 | $ export WLP_USER_DIR=/path/to/sample.daytrader7/daytrader-ee7-wlpcfg
59 | $ /path/to/wlp/bin/server start daytrader7Sample
60 |
61 | 1. Confirm web browser opens on "http://localhost:9082/daytrader/" or "http://localhost:9082/daytrader/index.faces"
62 | 2. In the web browser, Click on the configuration tab.
63 | 3. Click on '(Re)-create DayTrader Database Tables and Indexes' to create the database.
64 | 4. Click on '(Re)-populate DayTrader Database' to populate the database.
65 | 5. Restart the server-> . Now the application will be ready for use.
66 | $ /path/to/wlp/bin/server stop daytrader7Sample
67 | $ /path/to/wlp/bin/server start daytrader7Sample
68 | ```
69 |
70 | * `start` runs the server in the background. Look in the logs directory for console.log to see what's going on, e.g.
71 | * `stop` stop the server in the background. Look in the logs directory for console.log to see what's going on, e.g.
72 | * `run` runs the server in the foreground.
73 |
74 | ```bash
75 | $ tail -f ${WLP_USER_DIR}/servers/daytrader7Sample/logs/console.log
76 | ```
77 |
78 |
--------------------------------------------------------------------------------
/jmeter_files/README.txt:
--------------------------------------------------------------------------------
1 | # (C) Copyright IBM Corporation 2015.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 |
16 | daytrader7.jmx is an Apache JMeter script that may be used for running the DayTrader7 benchmark.
17 | daytrader7_mojarra.jmx is the same as daytrader7.jmx, but for use with Mojarra JSF implementations.
18 |
19 | Jmeter version 3.3 or later is highly recommended.
20 | To use the script, you will need to put the the WebSocket Sampler (and dependencies) from WebSocket Samplers by Peter Doornbosch into lib/ext.
21 | Use the Jmeter plugin manager or download via https://bitbucket.org/pjtr/jmeter-websocket-samplers.
22 |
23 |
24 | The script has the following options:
25 | -JHOST The name of the machine running the DayTrader Application. The default is localhost.
26 | -JPORT The HTTP port of the server running the DayTrader Application. The default is 9082.
27 | -JPROTOCOL The transport either http or https
28 | NOTE: The websocket plugin does not offer a variable substitution. See the WS note below.
29 | -JTHREADS The number of jmeter threads to start. The default is 50.
30 | -JRAMP The ramp up time for starting the threads. Set this to the same value as -JTHREADS for a smoother startup. The default is 0.
31 | -JDURATION The time (in seconds) to run jmeter.
32 | -JMAXTHINKTIME The time in milliseconds to wait between each call. The default is 0 ms
33 | -JSTOCKS The total amount of stocks/quotes in the database, minus one. The default is 9999, which assumes there are 10,000 stocks in the database.
34 | -JBOTUID The lowest user id. The default is 0.
35 | -JTOPUID The highest user id. The default is 14999, which assumes there are 15,000 users in the database.
36 |
37 | WS NOTE: To enable encrypted WebSocket, either open daytrader7.jmx using the GUI and enable WSS on the WS2 and WS1 calls, or edit the daytrader.jmx file and change the TLS prop to true.
38 |
39 | Example: ./jmeter -n -t daytrader7.jmx -JHOST=myserver -JPORT=9082 -JPROTOCOL=http -JMAXTHINKTIME=100 -JDURATION=300
40 |
41 | To see output every five seconds from JMeter, edit the following section in /bin/jmeter.properties
42 |
43 | #---------------------------------------------------------------------------
44 | # Summariser - Generate Summary Results - configuration (mainly applies to non-GUI mode)
45 | #---------------------------------------------------------------------------
46 | #
47 | # Define the following property to automatically start a summariser with that name
48 | # (applies to non-GUI mode only)
49 | summariser.name=summary
50 | #
51 | # interval between summaries (in seconds) default 30 seconds
52 | summariser.interval=5
53 | #
54 | # Write messages to log file
55 | summariser.log=true
56 | #
57 | # Write messages to System.out
58 | summariser.out=true
59 |
--------------------------------------------------------------------------------
/jvm.container.options:
--------------------------------------------------------------------------------
1 | -verbose:gc
2 | -Xdump:heap
3 | -Xaggressive
4 | -Xverbosegclog:/logs/verbosegc.log,200,10000
5 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
5 | 4.0.0
6 |
7 | net.wasdev.wlp.sample
8 | daytrader7
9 | pom
10 | 1.0-SNAPSHOT
11 | WAS Liberty Sample - Java EE7 Benchmark Sample
12 |
13 |
14 |
15 | The Apache Software License, Version 2.0
16 | https://raw.github.com/WASdev/sample.daytrader7/master/LICENSE
17 | repo
18 |
19 |
20 |
21 |
22 | daytrader-ee7-ejb
23 | daytrader-ee7-web
24 | daytrader-ee7
25 |
26 |
27 |
--------------------------------------------------------------------------------
/zos_db2_files/RUNSTAT.JCL:
--------------------------------------------------------------------------------
1 | //TDRUNSTA JOB MSGCLASS=H,MSGLEVEL=(1,1),REGION=0M,NOTIFY=&SYSUID.
2 | //* ----------------------- //
3 | //* DB2V11.JUN2915.SDSNEXIT
4 | //* RUNSTATS
5 | //*
6 | //STEP1 EXEC PGM=DSNUTILB,PARM='DB94,STAA1',DYNAMNBR=25
7 | //STEPLIB DD DISP=SHR,DSN=DB2V11.JUN2915.SDSNEXIT
8 | //SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(600,50))
9 | //SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(600,50))
10 | //SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(600,50))
11 | //SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(600,50))
12 | //SORTWK04 DD UNIT=SYSDA,SPACE=(CYL,(600,50))
13 | //SYSREC DD UNIT=SYSDA,SPACE=(CYL,(599,49))
14 | //SYSPRINT DD SYSOUT=*
15 | //UTPRINT DD SYSOUT=*
16 | //SYSUDUMP DD SYSOUT=*
17 | //SYSIN DD *
18 | RUNSTATS TABLESPACE TRADE.TRADETS1 INDEX ALL TABLE ALL REPORT YES
19 | RUNSTATS TABLESPACE TRADE.TRADETS2 INDEX ALL TABLE ALL REPORT YES
20 | RUNSTATS TABLESPACE TRADE.TRADETS3 INDEX ALL TABLE ALL REPORT YES
21 | RUNSTATS TABLESPACE TRADE.TRADETS4 INDEX ALL TABLE ALL REPORT YES
22 | RUNSTATS TABLESPACE TRADE.TRADETS5 INDEX ALL TABLE ALL REPORT YES
23 | RUNSTATS TABLESPACE TRADE.TRADETS6 INDEX ALL TABLE ALL REPORT YES
24 |
--------------------------------------------------------------------------------
/zos_db2_files/dbbind.jcl:
--------------------------------------------------------------------------------
1 | //DBINDS20 JOB MSGCLASS=H,NOTIFY=&SYSUID.,REGION=0M
2 | //*********************************************************************/00010000
3 | //* JOB NAME = DSNTIJSG */00020000
4 | //* */00030000
5 | //* DESCRIPTIVE NAME = INSTALLATION JOB STREAM */00040000
6 | //* */00050000
7 | //*********************************************************************/00290000
8 | //JOBLIB DD DISP=SHR, 00300000
9 | // DSN=DB211.D121916.SDSNLOAD 00310000
10 | //* 00430000
11 | //DSNTIRU EXEC PGM=IKJEFT01,DYNAMNBR=20 00440000
12 | //SYSTSPRT DD SYSOUT=* 00450000
13 | //SYSPRINT DD SYSOUT=* 00460000
14 | //SYSUDUMP DD SYSOUT=* 00470000
15 | //SYSTSIN DD * 00480000
16 | DSN SYSTEM(DB90) 00490000
17 | REBIND PACKAGE(NULLID.SYSLH100) ISOLATION(CS) CURRENTDATA (NO) 00728260
18 | REBIND PACKAGE(NULLID.SYSLH200) CURRENTDATA(NO) ISOLATION(CS) 00728260
19 | REBIND PACKAGE(NULLID.SYSLH300) CURRENTDATA(NO) ISOLATION(CS) 00728260
20 | REBIND PACKAGE(NULLID.SYSLH400) CURRENTDATA(NO) ISOLATION(CS) 00728260
21 | REBIND PACKAGE(NULLID.SYSLN100) CURRENTDATA(NO) ISOLATION(CS) 00728260
22 | REBIND PACKAGE(NULLID.SYSLN200) CURRENTDATA(NO) ISOLATION(CS) 00728260
23 | REBIND PACKAGE(NULLID.SYSLN300) CURRENTDATA(NO) ISOLATION(CS) 00728260
24 | REBIND PACKAGE(NULLID.SYSLN400) CURRENTDATA(NO) ISOLATION(CS) 00728260
25 | REBIND PACKAGE(NULLID.SYSLH101) CURRENTDATA(NO) ISOLATION(CS) 00728260
26 | REBIND PACKAGE(NULLID.SYSLH201) CURRENTDATA(NO) ISOLATION(CS) 00728260
27 | REBIND PACKAGE(NULLID.SYSLH301) CURRENTDATA(NO) ISOLATION(CS) 00728260
28 | REBIND PACKAGE(NULLID.SYSLH401) CURRENTDATA(NO) ISOLATION(CS) 00728260
29 | REBIND PACKAGE(NULLID.SYSLN101) CURRENTDATA(NO) ISOLATION(CS) 00728260
30 | REBIND PACKAGE(NULLID.SYSLN201) CURRENTDATA(NO) ISOLATION(CS) 00728260
31 | REBIND PACKAGE(NULLID.SYSLN301) CURRENTDATA(NO) ISOLATION(CS) 00728260
32 | REBIND PACKAGE(NULLID.SYSLN401) CURRENTDATA(NO) ISOLATION(CS) 00728260
33 | REBIND PACKAGE(NULLID.SYSLH102) CURRENTDATA(NO) ISOLATION(CS) 00728260
34 | REBIND PACKAGE(NULLID.SYSLH202) CURRENTDATA(NO) ISOLATION(CS) 00728260
35 | REBIND PACKAGE(NULLID.SYSLH302) CURRENTDATA(NO) ISOLATION(CS) 00728260
36 | REBIND PACKAGE(NULLID.SYSLH402) CURRENTDATA(NO) ISOLATION(CS) 00728260
37 | REBIND PACKAGE(NULLID.SYSLN102) CURRENTDATA(NO) ISOLATION(CS) 00728260
38 | REBIND PACKAGE(NULLID.SYSLN202) CURRENTDATA(NO) ISOLATION(CS) 00728260
39 | REBIND PACKAGE(NULLID.SYSLN302) CURRENTDATA(NO) ISOLATION(CS) 00728260
40 | REBIND PACKAGE(NULLID.SYSLN402) CURRENTDATA(NO) ISOLATION(CS) 00728260
41 | REBIND PACKAGE(NULLID.SYSSTAT) CURRENTDATA(NO) ISOLATION(CS) 00728260
42 | END 00728840
43 |
--------------------------------------------------------------------------------