<%@ page import="org.apache.geronimo.samples.daytrader.TradeConfig" session="false" isThreadSafe="true" isErrorPage="false" %>
Trade Configuration Trade

<% String status; status = (String) request.getAttribute("status"); if (status != null) { %>
<% out.print(status); %>
<% } %>
The Current Trade runtime configuration is detailed below. View and optionally update run-time parameters.  

NOTE: Parameters settings will return to default on server restart. To make configuration settings persistent across application server stop/starts, edit the servlet init parameters for each Trade servlet. This is described in the Trade FAQ.

Run-Time Mode

<%String configParm = "RunTimeMode"; String names[] = TradeConfig.runTimeModeNames; int index = TradeConfig.runTimeMode; for (int i = 0; i < names.length; i++) { out.print( " " + names[i] + "
"); } %>


Run Time Mode determines server implementation of the TradeServices to use in the Trade application Enterprise Java Beans including Session, Entity and Message beans or Direct mode which uses direct database and JMS access. See DayTrader FAQ for details.
Order-Processing Mode

<%configParm = "OrderProcessingMode"; names = TradeConfig.orderProcessingModeNames; index = TradeConfig.orderProcessingMode; for (int i = 0; i < names.length; i++) { out.print( " " + names[i] + "
"); } %>


Order Processing Mode determines the mode for completing stock purchase and sell operations. Synchronous mode completes the order immediately. Asynchronous_1-phase mode uses MDB/JMS to queue the order to a Trade broker agent to complete the order. Asychronous_2-Phase performs a 2-phase commit over the EJB Entity/DB and MDB/JMS transactions. See Trade FAQ for details.
Access Mode

<%configParm = "AcessMode"; names = TradeConfig.accessModeNames; index = TradeConfig.getAccessMode(); for (int i = 0; i < names.length; i++) { out.print( " " + names[i] + "
"); } %>

Web Services Endpoint


Access Mode determines the protocol used by the DayTrader Web application to access server side services. The Standard mode uses the default Java RMI protocol. The Web Services mode uses the Axis implementation of Web Services including SOAP, WSDL and UDDI.
For the Web Services Access mode, set the Web Services Endpoint URL to point to the host and port which is running the Trade Application Web Services module.
Scenario Workload Mix

<%configParm = "WorkloadMix"; names = TradeConfig.workloadMixNames; index = TradeConfig.workloadMix; for (int i = 0; i < names.length; i++) { out.print( " " + names[i] + "
"); } %>

This setting determines the runtime workload mix of Trade operations when driving the benchmark through TradeScenarioServlet. See Trade FAQ for details.
WebInterface

<%configParm = "WebInterface"; names = TradeConfig.webInterfaceNames; index = TradeConfig.webInterface; for (int i = 0; i < names.length; i++) { out.print( " " + names[i] + "
"); } %>

This setting determines the Web interface technology used, JSPs or JSPs with static images and GIFs.
Miscellaneous Settings
Trade Max Users
>
Trade Max Quotes
>
By default the Trade database is populated with 500 users (uid:0 - uid:499) and 1000 quotes (s:0 - s:999).
Primitive Iteration
By default the Trade primitives are execute one operation per web request. Change this value to repeat operations multiple times per web request.
name="EnableActionTrace"> Enable operation trace
name="EnableTrace"> Enable full trace
Enable Trade processing trace messages

Trade Configuration Trade
Apache Geronimo Performance Benchmark Sample DayTrader
Copyright 2005, Apache Software Foundation