6.4. Data Grid Services 的主机名

使用与您 Hot Rod 客户端的位置对应的 Data Grid 主机名。

在 Same OpenShift 命名空间中

使用 APPLICATION_NAME

例如:

.host("cache-service")

在不同的 OpenShift 命名空间上

使用以下格式的内部服务 DNS 名称:
APPLICATION_NAME.SERVICE_NAMESPACE.svc

例如:

.host("cache-service.rhdg-helloworld.svc")

在 OpenShift 外部

使用 Hot Rod 路由主机名。

例如:

.host("cache-service-hotrod-route-rhdg-helloworld.192.0.2.0.nip.io")