Hi Azeez,

On Tue, Feb 7, 2012 at 7:43 PM, Afkham Azeez <[email protected]> wrote:

> Write a OSGi ServiceComponent which depends on the
> ConfigurationContextService & in its activate method, get the relevant
> values from that ConfigurationContextService & create that param.
>

We already have one in webapp-mgt (WebappManagementServiceComponent), which
is also depending on ConfigurationContextService. So we can use this to set
the parameter.

Thanks,
Kishanthan.

>
> On Mon, Feb 6, 2012 at 12:16 PM, Kishanthan Thangarajah <
> [email protected]> wrote:
>
>> Hi All,
>> This is related to web-app management. Currently the above parameter is
>> set during the initialization of WebappDeployer. It takes the serverUrl
>> from the serverConfiguration instance and the port value for the url is
>> taken from the corresponding transport from axisConfig. This initialization
>> happens before carbon server starts and the port value is 9443 at that time
>> in axisConfig(taken from axis2.xml). But the problem arise, if we change
>> the port values in carbon.xml(say setting a value for portOffSet), as
>> this change is not reflected in during the WebappDeployer initialization
>> time. But the change is available in axisConfig after the carbon server
>> is started. Because of this, the port value is always set to 9443 and added
>> to the above parameter. One will run into issue, when using the above
>> parameter in a webapp which talkes to a service (say AuthenticationAdmin
>> service) [1].
>> So what would be the correct fix for this?
>>
>> Thanks,
>> Kishanthan.
>> [1] https://wso2.org/jira/browse/CARBON-11039
>>
>> --
>> *Kishanthan Thangarajah*
>> Software Engineer,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com*
>> Twitter - *http://twitter.com/kishanthan*
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to