Why and when to perform this task
This section describes how to develop a Java program using the WebSphere Application Server administrative APIs for accessing the WebSphere administrative system. For more information, view the JMX Javadoc .When you develop and run administrative clients that use various JMX connectors and that have security enabled, use the following guidelines. When you follow these guidelines, you guarantee the behavior among different implementations of JMX connectors. Any programming model that strays from these guidelines is unsupported.
Steps for this task
For example, if your installation directory is w:\DeploymentManager a typical command would look like the following example:
javac -classpath w:\DeploymentManager\lib\admin.jar;w:\DeploymentManager\lib\wsexception.jar; w:\DeploymentManager\lib\jmxc.jar MyAdminClient.java(split for publication)(split for publication)
@echo off call "%~dp0setupCmdLine.bat" "%JAVA_HOME%\bin\java" "%CLIENTSAS%" "-Dwas.install.root=%WAS_HOME%" "-Dwas.repository.root=%CONFIG_ROOT%" -Dcom.ibm.CORBA.BootstrapHost=%COMPUTERNAME% -classpath "%WAS_CLASSPATH%;w:\DeploymentManager\classes;w:\DeploymentManager\lib\admin.jar; w:\DeploymentManager\lib\wasjmx.jar" MyAdminClient %*