aspose file tools*
The moose likes Beginning Java and the fly likes How to run my java app in the romote server and get response back? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to run my java app in the romote server and get response back?" Watch "How to run my java app in the romote server and get response back?" New topic
Author

How to run my java app in the romote server and get response back?

Mindy Wu
Ranch Hand

Joined: Jan 12, 2001
Posts: 121
Hello everyone,
I wondering if anyone know how to run your java app on the
romote server or other computer, and get msg or other response back when completes.
Thanks for reading this msg and thank again for your reply!
Mindy
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
First you buy a book on Servlets,
or on RMI,
or on Corba,
or on DCOM,
etc.
You haven't given us a clue what you need to do, and how you intend to design it.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Mindy Wu
Ranch Hand

Joined: Jan 12, 2001
Posts: 121
Hi Cindy,
Ok, let me explain this in details:
We have written many java applications, usually we create a shortcut (like a .bat file) on the user's desktop, user clicks the destktop icon and the java program run's on the user's local machine, sometimes it takes up a lot of system resources and slow up the operating system.
So, we are planning to have our program run in the server, what i meant is to ( when user clicks the icon on the desktop, the java app will be run on the server, when its process completed, will notify the user).
Hope this clear enough for you, as I am so need your help and suggestion so bad.
Thank you!
Mindy
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Depends on how complex you want to get... the simplest thing is to read up on the java.net package in the API. Socket and ServerSocket can be used to build client/server applications. Most java books have some kind of example using these classes to make a client/server application. If you need more elegant solutions, you may need to read up on some of the technologies Cindy mentioned above.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Mindy Wu
Ranch Hand

Joined: Jan 12, 2001
Posts: 121
Hi Nathan,
can you give me the url of the RIM, API stuff?
Thanks!
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
Mindy,
I find the Sun 'book trails' (hey, trail....that kinda fits in with the 'ol Ranch!) are always a good starting point.
http://java.sun.com/docs/books/tutorial/rmi/index.html
Sean
Mindy Wu
Ranch Hand

Joined: Jan 12, 2001
Posts: 121
Originally posted by Sean MacLean:
Mindy,
I find the Sun 'book trails' (hey, trail....that kinda fits in with the 'ol Ranch!) are always a good starting point.
http://java.sun.com/docs/books/tutorial/rmi/index.html
Sean

Hi Sean
I have read that tutorial and I found it is not easy to understand it at all! Do you know any site has related totorials related this this topic?
Thank you very much, very much!
Mindy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to run my java app in the romote server and get response back?