Re: [Carbon-dev] Setting the correct value for "webServiceServerURL" servlet context parameter

2012-02-16 Thread Kishanthan Thangarajah
Hi Azeez,

On Tue, Feb 7, 2012 at 7:43 PM, Afkham Azeez  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 <
> kishant...@wso2.com> 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
>> Carbon-dev@wso2.org
>> 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/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> 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
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Setting the correct value for "webServiceServerURL" servlet context parameter

2012-02-07 Thread Afkham Azeez
Write a OSGi ServiceComponent which depends on the
ConfigurationContextService & in its activate method, get the relevant
values from that ConfigurationContextService & create that param.

On Mon, Feb 6, 2012 at 12:16 PM, Kishanthan Thangarajah  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
> Carbon-dev@wso2.org
> 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/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Setting the correct value for "webServiceServerURL" servlet context parameter

2012-02-05 Thread Kishanthan Thangarajah
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
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev