On Tue, Jul 16, 2013 at 5:36 AM, Samisa Abeysinghe <[email protected]> wrote:

> What sort of time cost would this interception add? Would it be there for
> all invocations?
>

Above described steps executed only during deployment of a JAX-WS service.
In runtime  if a user make a meta data query request with "?wsdl" it will
execute
HostNameSupportedWSDLGetInterceptor instead of  WSDLGetInterceptor for
other requests such as message invocations there is no any impact.  As
HostNameSupportedWSDLGetInterceptor only read Carbon Hostname value during
the deployment there is no significant cost add to WSDL meta data request
too.

Thanks !


>
>
> On Thu, Jul 11, 2013 at 4:28 PM, Sagara Gunathunga <[email protected]>wrote:
>
>>
>> So far AS does not support for Carbon HostName property when generating
>> WSDLs for JAX-WS services,  this was an issue on ELB fronted worker/manager
>> setups because each worker generate WSDLs with their own hostname/IP.
>>
>> Please find proposed architecture to fix above issue.
>>
>>
>> 1.  In CXF F/W WSDLGetInterceptor is the interceptor responsible for WSDL
>> generation,  there is a new  interceptor introduced called
>> HostNameSupportedWSDLGetInterceptor which extended from default
>> WSDLGetInterceptor. This HostNameSupportedWSDLGetInterceptor calls supper
>> class methods to generate WSDLs but modify endpoint address according to
>> Carbon HostName property.
>>
>> 2. There is a CXF ServerLifeCycleListener introduced called
>> CarbonServerLifeCycleListener which get invoked during the start and
>> termination of CXF service, during the start it perform following two
>> activities.
>>
>> a.)  Load the configuration from carbon.xml  and keep it in a static
>> variable to use in future.
>>
>> b.)  Go through the registered interceptors and replace
>> WSDLGetInterceptor by HostNameSupportedWSDLGetInterceptor if it available
>> on Classpath.
>>
>>
>> This new CXF extension will be shipped as a dependency of AS 5.2.0 CXF
>> runtime but can be used with any CXF version within a Carbon based servers.
>>
>>
>>
>> Thanks !
>>
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;    http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;    http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to