Skip to content

Commit eff281a

Browse files
author
Tim Middleton
authored
Fix #428 (#429)
1 parent 338a1b5 commit eff281a

File tree

1 file changed

+2
-0
lines changed
  • examples/deployment/src/main/java/com/oracle/coherence/examples

1 file changed

+2
-0
lines changed

examples/deployment/src/main/java/com/oracle/coherence/examples/Main.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import io.helidon.webserver.WebServer;
2424

2525
import com.tangosol.net.CacheFactory;
26+
import com.tangosol.net.DefaultCacheServer;
2627
import com.tangosol.util.QueryHelper;
2728

2829
/**
@@ -64,6 +65,7 @@ public static void main(String[] args) throws Exception {
6465
.start()
6566
.thenAccept(s -> {
6667
System.out.println("HTTP server is UP! http://localhost:" + s.port());
68+
DefaultCacheServer.startServerDaemon().waitForServiceStart();
6769
s.whenShutdown().thenRun(() -> System.out.println("HTTP server is DOWN. Good bye!"));
6870
})
6971
.exceptionally(t -> {

0 commit comments

Comments
 (0)