Hi Senaka

On the first, you have to look at Synapse_Configuration_Language.html#registry for understanding more generally how any resources in the registry mimic dynamic behavior. Then, look at the classes in the org.apache.synapse.registry package, specially at method "public Object getResource(Entry entry)" in the AbstractRegistry.Java from synapse source.

For dynamic endpoint (endpoint configuration is in the registry and loaded at runtime), look at the code with following order

1 IndirectEndpoint - Endpoint endpoint = synMessageContext.getEndpoint(key)

2 Axis2MessageContext (MessageContext) - public Endpoint getEndpoint(String key)

3 SynapseConfiguration - public Endpoint getEndpoint(String key)

4 Registry - public Object getResource(Entry entry)

Generally you have to look at Axis2MessageContext(MessageContext) , SynapseConfiguration and classes in the registry package. In addition, look at the XSLTMediator class, it shows how to load dynamic resources (here loads xslt files from registry).

I believe that you aren't referring to the DynamicLoadbalanceEndpoint. It is not related to the registry. It is a way of load balancing among group members who are not defined at static time but have to discover at runtime through a group communication framework.

Properties of the class mediator are only literal values. But for POJOCommand mediator, you can specify the properties to be loaded from synapse message context, axis2 message context ,transport headers or from the registry (you have to use get-property XPath function. Please look at the Synapse_Configuration_Language.html for details about synapse:get-property() and synapse xpath and there are samples using those).

Thanks
Indika


Senaka Fernando wrote:
Hi all,

I need to know how does a dynamic registry placed in a registry get recognized by the esb configuration. It would be great if you could point me to relevant source files as well. Also, is there any similar implementation related to class mediator properties?

Thanks,
Senaka
No virus found in this incoming message.
Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.10/1587 - Release Date: 8/2/2008 5:30 PM ------------------------------------------------------------------------

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to