On Mon, Aug 31, 2009 at 9:39 AM, Hiranya Jayathilaka
<[email protected]>wrote:
> Hi Folks,
>
> Currently the AbstractRegistry#getResource method returns endpoints without
> initializing them (see the following code snippet from the method).
>
> if (entry.getMapper() != null) {
> entry.setValue(entry.getMapper().getObjectFromOMNode(omNode));
> if (entry.getValue() instanceof SequenceMediator) {
> SequenceMediator seq = (SequenceMediator) entry.getValue();
> seq.setDynamic(true);
> seq.setRegistryKey(entry.getKey());
> } else if (entry.getValue() instanceof Endpoint) {
> Endpoint ep = (Endpoint) entry.getValue();
> }
> }
>
> As a result when certain types of endpoints (eg: WSDL endpoints) are kept
> in the remote registry they cannot be successfully used in proxy services
> etc.
See SYNAPSE-577 for a related issue.
Thanks,
Hiranya
> This is because unless we do not initialize an endpoint, its associated
> EndpointContext will not get initialized which leads to errors during
> sending messages to the endpoint and specially when routing responses back.
> I think we need to fix this up in the AbstractRegistry class. WDYT?
>
> Thanks
> --
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.; http://wso2.org
> E-mail: [email protected]; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
--
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.; http://wso2.org
E-mail: [email protected]; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com