[Axis2] Is there anyway to set the hostname programatically at runtime?

2009-03-09 Thread Raghu Upadhyayula
Hi,

 

I'm using Axis2 1.4 version.

 

In axis2.xml there is a parameter named "hostname"

 





 

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



Re: [Axis2] Is there anyway to set the hostname programatically at runtime?

2009-03-09 Thread Deepal jayasinghe
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”
>
> 
>
> 
>
> 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