Java EE in orchestrated containers
The orchestration framework orchestrates and integrates enterprise applications in clustered environments. It takes a lot of work off the used application technology. Container orchestration also vastly simplifies how to configure applications and how to connect to external services. This section will showcase this.
Connecting external services
Client controls require URLs to connect against in order to integrate external services. The URLs traditionally have been configured in files, which potentially differed in various environments. In an orchestrated environment the application can resolve external services using a logical name, via DNS. The following code snippet shows how to connect against the cloud processor application:
@ApplicationScoped public class HelloCloudProcessor { private Client client; private WebTarget target; @PostConstruct private void initClient() { client = ClientBuilder... target = client.target("http...