Package org.jboss.fresh.shell.ejb

Examples of org.jboss.fresh.shell.ejb.RemoteShellHome


      lastReinit = 0;
      notify();
    }
   
    try {
    RemoteShellHome home = null;
    outerloop:
    while (true) {
      for (int i = 0; i< 2 && home == null; i++) {
        try {
          InitialContext ctx = new InitialContext(new Hashtable(props));
          home = (RemoteShellHome) ctx.lookup("ShellSession");
          log.debug("ctx.lookup(\"ShellSession\"): " + home);

          shellin = home.create();
          log.debug("home.create(): " + shellin);

          shellout = home.create(shellin.getSessionID());
          log.debug("home.create(sessionID): " + shellout);

          try {
            // now we run the executable
            // and save process info
View Full Code Here


                        }
                    }
                } else {
                    // we get RemoteShell
                    InitialContext ctx = new InitialContext();
                    RemoteShellHome home = (RemoteShellHome) ctx.lookup(eSvcname);
                    RemoteShell shell = home.create();

                    try {
                        // now line by line
                        // And put all exceptions to log too.
                        String cmd = in.readLine();
View Full Code Here

TOP

Related Classes of org.jboss.fresh.shell.ejb.RemoteShellHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.