axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal jayasinghe <deep...@gmail.com>
Subject Re: [Axis2] Is there anyway to set the hostname programatically at runtime?
Date Tue, 10 Mar 2009 00:20:37 GMT
You can do that, only thing you need to do is change the parameter in
axisconfiguration at the runtime. Which you can do in many ways,
- Do it at module init
- You can do that using a service etc.

Thank you!
Deepal
>
> Hi,
>
> I’m using Axis2 1.4 version.
>
> In axis2.xml there is a parameter named “hostname”
>
> <!-- Following parameter will set the host name for the epr-->
>
> <!--<parameter name="hostname" locked="true">myhost.com</parameter>-->
>
> Is there a way to set this “hostname” parameter programmatically at
> runtime?
>
> The requirement I have is that I have to set a different hostname for
> each server where my webservices is deployed and I don’t want to edit
> each of those axis2.xml files in the corresponding war files.
>
> I’ll have a hostname defined in some property file & I have to read it
> at runtime & set it to this hostname parameter programmatically.
>
> Thanks
>
> Raghu
>


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org


Mime
View raw message