im facing up to wso2 ESB 4.8.1 and WSO2 GREG 4.6.0. I have connected GREG as esb's remote Registry and now i need to develop a class mediator by which i can store shared recources inside the remote registry.
1) Does the Registry can store Java Object?
2) should i use org.apache.synapse.registry.Registry for browing the registry? or is it better to import the governance api inside the mediator project?
For example i need to add and get a resource and to set it my custom properties. Then i want to read them. Using this code:
org.apache.axis2.context.MessageContext axis2MsgContext;
axis2MsgContext = ((Axis2MessageContext) synapseMsgContext).getAxis2MessageContext();
Registry regInstance = synapseMsgContext.getConfiguration()
.getRegistry();
Object obj = regInstance.getResource(new Entry ("conf:/provaDUE"), null);
Properties prop = regInstance.getResourceProperties("conf:/provaDUE");
I cannot get the properties i set using UI.
Thanks.