You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Arpit Gupta <ar...@techblue.co.uk> on 2011/06/20 13:20:29 UTC
How to set services.xml parameters dynamically
Hi all,
I am using EJB as the service implementer in my web service.
I need to deploy my web service on multiple servers.
so, is there any solution to set "providerUrl" parameter dynamically in
services.xml by reading the parameter from somewhere else at deploy time.
Thanks,
Arpit
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: How to set services.xml parameters dynamically
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
you can create the services.xml and deploy the service programatically on
runtime...some code snippet could be following..
File servDir = new File(serviceDir);
DeploymentFileData serviceData = new DeploymentFileData(servDir);
ServiceDeployer serviceDeployer = new ServiceDeployer();
serviceDeployer.init(AXIS_CONFIG_CONTEXT);
serviceDeployer.deploy(serviceData);
HTH,
Chinmoy
On Mon, Jun 20, 2011 at 4:50 PM, Arpit Gupta <ar...@techblue.co.uk>wrote:
> Hi all,
>
> I am using EJB as the service implementer in my web service.
> I need to deploy my web service on multiple servers.
> so, is there any solution to set "providerUrl" parameter dynamically in
> services.xml by reading the parameter from somewhere else at deploy time.
>
> Thanks,
> Arpit
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.**apache.org<ja...@axis.apache.org>
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>