This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Run java app on server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Run java app on server" Watch "Run java app on server" New topic
Author

Run java app on server

Arr Dee
Greenhorn

Joined: Apr 09, 2009
Posts: 1
Hello all,

I'm fairly new to Java programming (actually I did use Java for quite some time, but only for standalone applications).

I have this small Java application (plain and simple) which takes a few arguments. I want to be able to invoke my application from a webbrowser (and pass some parameters), so by URL.

My question is plain and simple: how should / could I do this?

Best, R4D2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

You'll need to wrap your program with a "web application" on an "application server." The simplest web application is a servlet that takes parameters and calls your program. Tomcat is a simple server to install.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8565

Arr Dee,
Please check your private messages for an important administrative matter.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Run java app on server
 
Similar Threads
JavaMail
Part 2 design question
Print plain text with Printable interface
What Platform/Java Technology - Please Help
pojo and java bean