Multidomain MDM
- Multidomain MDM 10.5 HotFix 4
- 所有产品
连接属性
| 说明
|
|---|---|
siperian-client.protocol
| 您要使用的通信协议。默认值为 HTTP。不更改默认值。
|
bes-client.http.url
| 自定义应用程序连接到 MDM 时使用的 URL。使用以下语法: http://<MDM host>:<port number>/cmx
默认为 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); }