Calling method on other server

I have my java application running on a unix server and have to run an executeable on a diffrent server. the directory in which the executeable is placed is shared with a user name and a password. i have to execute that executeable by first logging into the share directory and then invoking that exe. I need information about how i can do it in java using JINI or if there is an alternate to it .

[412 byte] By [zafar.hassan] at [2007-9-26 12:22:10]
# 1

I am trying to do several of the same things that you need to do.

I think the 'methods' exist and can be done in the java programming language - solely so that you dont have to get into scripts and confusing or hard to use things like COBRA. I think the solution rests in the ability to manipulate objects.

For example the login on the remote machine should have a Login object that you can manipulate in your app if the app or system you are going to be accessing is object driven. No?

So if that is true and there is that capability inherent to java programming language and you find it, please let me know. I need to find the text for these capabilities specifically.

Meanwhile, best of luck to you as well.

ctavares1@hotmail.com

ctavares1 at 2007-7-2 3:00:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

There are no 'objects' in the standard Java API that would allow one to do that easily. And depending on the logging interface it might not be possible at all.

Using the socket interface one can create a telnet session and by handling the telnet commands in java one could log in and run a remote session. However to do that in the standard API requires a non-trivial amount of code. I believe there are commercial interfaces that provide this.

If the logging in is actually via windows network then JNI would have to be used, along with Runtime.exec() to run the executable. The actual interface to log into a "network" computer has nothing to do with java so you might try a different forum/list for that info - something specific to windows. Or look it up in the Microsoft Developer library using either the CD or the online version. To interact with that will require JNI.

jschell at 2007-7-2 3:00:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Thank you
ctavares1 at 2007-7-2 3:00:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...