Changes to navigation break remote clients
------------------------------------------

         Key: GERONIMO-1926
         URL: http://issues.apache.org/jira/browse/GERONIMO-1926
     Project: Geronimo
        Type: Bug
    Security: public (Regular issues) 
  Components: core  
    Versions: 1.1    
    Reporter: Aaron Mulder
 Assigned to: Aaron Mulder 
    Priority: Critical
     Fix For: 1.1
 Attachments: peek-remote.jar, peek.jar

>From an e-mail:

I have created a simple program that calls J2EEDomain.getServerInstances() on 
J2EEDomain obtained from remote kernel.  Detatch the two jars to bin directory 
and run the program using the cmd "java -jar peek.jar".  Here is the code in 
the main() method.

    public static void main(String[] args) throws Exception {
        String host = "localhost";
        String username = "system";
        String password = "manager";
        for(int i = 0; i < args.length-1; ++i) {
            if("--username".equalsIgnoreCase(args[i])) username = args[i+1];
            if("--host".equalsIgnoreCase(args[i])) host = args[i+1];
            if("--password".equalsIgnoreCase(args[i])) password = args[i+1];
        }
        System.out.println("Using host="+host+", username="+username+", 
password="+password);
        KernelManagementHelper mgr = 
KernelManagementHelper.getRemoteKernelManager(host, username, password);
        System.out.println("KernelManagementHelper = "+mgr);

        J2EEDomain domain = mgr.getDomains()[0];
        System.out.println("J2EEDomain = "+domain);
        J2EEServer[] j2eeServers = domain.getServerInstances();
        System.out.println("J2EEServer = "+j2eeServers[0]);
    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to