Temporal Client - Java SDK | Temporal Platform Documentation
This guide introduces Temporal Clients. It explains the role and use of Clients and shows you how to configure your Java Client code to connect to the Temporal Service. This section includes the following topics: How to initialize a Temporal Client for the Temporal CLI development service using the Java SDK. The Java SDK provides an already-configured way to connect to a locally hosted Temporal Service. The .newLocalServiceStubs() method returns a stub that points to the default Temporal CLI service settings (localhost:7233). A Temporal Client cannot be initialized and used inside a Workflow. However, it is acceptable and common to use a Temporal Client inside an Activity to communicate with a Temporal Service. sample-apps/java/client/devserver-client-sample/src/main/java/clientsample/YourCallerApp.java The Namespace is assumed to be 'default' unless otherwise specified. How to initialize a Temporal Client to connect to a custom Namespace using the Java SDK. Custom Namespaces on local
This guide introduces Temporal Clients. It explains the role and use of Clients and shows you how to configure your Java Client code to connect to the Temporal Service. This section includes the following topics: How to initialize a Temporal Client for the Temporal CLI development service using the Java SDK. The Java SDK provides an already-configured way to connect to a locally hosted Temporal Service. The .newLocalServiceStubs() method returns a stub that points to the default Temporal CLI service settings (localhost:7233). A Temporal Client cannot be initialized and used inside a Workflow.
Explore this link on the map →