-
Creating a handle for a remote process
Hi all,
I am trying to run some Java RMI Components on a remote client. I downloaded some private Java API to do this, I have a difficulty in creating a handle for this process as I need to store the process as an object in an Hashtable so that I will be able to destroy the process in future.
Below is the code for the above process
String fullLocn = "//" +dsmlocation + ".cs.iupui.edu:"+temp.toString()+"/DomainSecurityManager";
String fullreg = "rmiregistry "+portNo;
String cmd1 = "rmiregistry " + portNo;
String cmd2 = "java -Djava.security.policy=policy DomainSecurityManager "+dsmlocation + " "+portNo;
Ftp test = new Ftp(host, user, pwd);
test.connect();
System.out.println("connected to host"+host);
test.issueCommand("cmd1");//to run the RMI components on remote host
test.issueCommand("cmd2");
test.disconnect();
FTP is the Private API to connect to a remote host and I need an handle to the command so that I can store them in an hashtable as below
RegistryList.put(fullreg, p);
DSMprocessList.put(fullLocn, p1);
where registryList and DSMprocessList are Hashtables.
Hope someone can help me out
Thanks,
anami_x
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks