axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sochea Meas (LMC)" <>
Subject How to integrate adminClient into existing application?
Date Thu, 03 Apr 2003 21:48:27 GMT
Hi all,

	I am trying to integrate adminClient into my own code but failed to succeed. Anybody can
point me out good reference to do so? The axis web site doesn't seem to clearly document this
process. Below is the code fragment used to call admin client.

        String arguments[] = new String [3];

            String ipAddress = InetAddress.getLocalHost().getHostAddress();

            arguments[0] = "-hlocalhost"; //Hostname
            arguments[1] = "-p7777"; //Web service container port
            arguments[2] = "-s/axis/servlets/AxisServlet"; //AxisServlet path

            //AdminClient can be found in axis.jar
            AdminClient adminClient = new AdminClient();

            //Get the wsdd of the deployed web service module
            String pathToFile = JasDir.getDirectory(JasDir.JAS_DEPLOY_WS).toString();
            pathToFile += "\\webapps\\axis\\" + moduleName + "\\META-INF";

                arguments[3] = pathToFile + "\\deploy.wsdd";

            else if (command.equalsIgnoreCase("undeploy"))
                arguments[3] = pathToFile + "\\undeploy.wsdd";
                log.error("AdminClientCall: The command passed is neither undeploy nor deploy");

                String result = adminClient.process(arguments);
            }catch(Exception e){
      "AdminClientCall: All argument has been processed with no error reported");

Sochea MEAS, intern
LMC/JG/A department
Ericsson Communication Canada

telephone: 514-345-7900 ext. 3432

View raw message