I can connect to Real Time Optimized by entering the machine ID, password and AppKey into the speed guide application. But I cannot connect via the spring boot project. It gives the error below.
"Failed to get endpoints:failed to submit authorization request, exception = Connect to api.refinitiv.com:443 [api.refinitiv.com/75.2.0.254, api.refinitiv.com/99.83.242.11] failed: Connection timed out: connect"
Also I don't know how do I use AppKey for serviceEndpointDiscoveryOption. My connection code is as follows.
String clientId = "my_machine_id";
String clientSecret = "my_password";
String AppKey = "my_appkey"
//prepare appclient
AppClient appClient = new AppClient();
//set options
ServiceEndpointDiscoveryOption serviceEndpointDiscoveryOption = EmaFactory.createServiceEndpointDiscoveryOption();
serviceEndpointDiscoveryOption.clientId(clientId);
serviceEndpointDiscoveryOption.clientSecret(clientSecret);
//**********I don't know how do I use AppKey for serviceEndpointDiscoveryOption *********
serviceEndpointDiscoveryOption.transport(ServiceEndpointDiscoveryOption.TransportProtocol.TCP);
//use ServiceEndpoint from EMA
ServiceEndpointDiscovery serviceEndpointDiscovery = EmaFactory.createServiceEndpointDiscovery();
serviceEndpointDiscovery.registerClient(serviceEndpointDiscoveryOption, appClient);