Skip to content

Commit

Permalink
Order delay time: Oracle 200ms, others 50ms
Browse files Browse the repository at this point in the history
  • Loading branch information
baumgrai committed Jul 12, 2024
1 parent e39dcc2 commit b6a4f0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/java/com/icx/dom/app/bikestore/BikeStoreApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public class BikeStoreApp {
public static final File BIKE_PICTURE = new File("src/test/resources/bike.jpg");

// Delay time between client bike order requests. One client tries to order bikes of 3 different types. Acts also as delay time for start of client's ordering threads.
// Note: Values lower 100ms lead to problems with Oracle connections - at least in local test environment with Oracle 11g Express edition (11.2)
public static final long ORDER_DELAY_TIME_MS = 100;
// Note: Values lower 200ms lead to problems with Oracle connections - at least in local test environment with Oracle 11g Express edition (11.2)
// public static final long ORDER_DELAY_TIME_MS = 200; // Oracle
public static final long ORDER_DELAY_TIME_MS = 50; // Others

// Initially available bikes for any provided size
public static final int AVAILABLE_BIKES = 15;
Expand Down Expand Up @@ -91,7 +92,7 @@ private static void checkOrdersAndStock() {
public static void main(String[] args) throws Exception {

// -------------------------------------------------
SqlDb.DbType dbType = DbType.MYSQL;
SqlDb.DbType dbType = DbType.ORACLE;
// -------------------------------------------------

// Read JDBC and Domain properties. Note: you should not have multiple properties files with same name in your class path
Expand Down

0 comments on commit b6a4f0f

Please sign in to comment.