The web application will to run in some kind of a container (JSP, Servlet, EJB, etc.), assuming you are talking about a "100% java solution". You can execute another program (either Java or another language) with Runtime.exec(uri, args[]). However, you really normally can only use the other program to query its exit code and associated input and output streams.
I'm not sure if this is what you are asking, namely to have the web server run an external application.
- Saish
"My karma ran over your dogma." - Anon
Now I begin to understand. If you want to write one class that acts as both a web app and an application, have it implement the servlet specification and add a main() method. The main() method will allow it to run as an application. And since it implements the servlet specification, it can also be run as a web application.
- Saish
"My karma ran over your dogma." - Anon