Class Server

java.lang.Object
com.oracle.coherence.cdi.server.Server

public class Server extends Object
This class bootstraps the CDI container, which will in turn start Coherence server via CDI extension.

This class should only be used when Coherence CDI is used in a standalone mode. When used with Helidon 2.0, Helidon's io.helidon.microprofile.cdi.Main should be used instead and will ensure that both Helidon and Coherence services are started correctly.

Since:
20.06
Author:
Aleks Seovic 2020.03.24
  • Constructor Details

    • Server

      public Server()
  • Method Details

    • main

      public static void main(String[] args)
      Main method that creates and starts CdiCacheServer.
      Parameters:
      args - program arguments
    • start

      public void start()
      Starts CDI, which will indirectly start DefaultCacheServer.