Multidomain MDM
- Multidomain MDM 10.4 HotFix 2
- All Products
Connection Property
| Description
|
---|---|
siperian-client.protocol
| Communication protocol that you want to use. Default is HTTP. Do not change the default value.
|
bes-client.http.url
| URL for the custom application to connect to MDM. Use the following syntax:
http://<MDM host>:<port number>/cmx
Default is
http://localhost:8080/cmx .
|
public class CustomLogicService implements Provider<Source> { @Override public Source invoke(Source request) { CompositeServiceClient compositeServiceClient = createCompositeServiceClient(); CustomLogicFactory customLogicFactory = new CustomLogicFactoryImpl(compositeServiceClient); String appName = "<trusted application user>"; ExternalCallProcessor externalCallProcessor = new ExternalCallProcessor(compositeServiceClient, appName, customLogicFactory); return externalCallProcessor.invoke(request); } private static CompositeServiceClient createCompositeServiceClient() { InputStream resourceAsStream = CustomLogicService.class.getResourceAsStream("/bes-client.properties"); Properties config = new Properties(); try { config.load(resourceAsStream); } catch (IOException e) { throw new RuntimeException(e); } return CompositeServiceClient.newCompositeServiceClient(config); }