简体   繁体   English

WSO2 Carbon:远程获取本地条目

[英]WSO2 Carbon: get local entry remotely

I have Local Entry on WSO2 ESB 4.6.0. 我在WSO2 ESB 4.6.0上有本地条目。
Is it possible to fetch it remotely? 是否可以远程获取?
(I mean outside of Synapse; like it is possible to get Resources/Collection from Registry with RemoteRegistry). (我的意思是在Synapse之外;就像可以通过RemoteRegistry从注册表中获取资源/集合一样)。

PS I've tried with LocalEntryAdmin , but it fetches entries from synapseConfiguration. PS我尝试使用LocalEntryAdmin ,但是它从synapseConfiguration中获取条目。


I'm trying to get registry (to get then local entry) from standalone Java app with WSRegistryServiceClient . 我正在尝试使用WSRegistryServiceClient从独立的Java应用程序获取注册表(然后获取本地条目)。
I copied jks and axis2repo but still get: 我复制了jks和axis2repo但仍然得到:

org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to perform get operation.    at  org.wso2.carbon.registry.ws.client.registry.WSRegistryServiceClient.get(WSRegistryServiceClient.java:247)
org.apache.axis2.AxisFault: The input stream for an incoming message is null.

Should I use WSRegistryServiceClient only from Carbon environment? 我应该仅在Carbon环境中使用WSRegistryServiceClient吗?

You should be able to get it from Registry. 您应该能够从注册表中获取它。 Using registry API, get the Localregistry and try to read it as a resource; 使用注册表API,获取Localregistry并尝试将其读取为资源;

localRegistry().get("testLocalentry");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM