Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running servlets/jsp in a stand alone application

 
Mohan Panigrahi
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Background : I have an application that uses jsp/servlets and xml files for data storage.Presently I run my application on an app server. My application does not use any of the app server APIs.
Problem Statement: I now wish to run my application as a stand alone application without an app server. I do find examples of such applications that would run an inbuilt server at command prompt.
Help Could any one suggest how to do it.
Thanks
[ October 31, 2002: Message edited by: Mohan Panigrahi ]
 
Roger Graff
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not possible to keep your existing servlets/JSP's without writing your own server that implements the servlet and JSP specifications. You are in fact using the app server's implementations of the Servlet and JSP specifications.
You could a command line driven user interface (or swing UI) which calls classes in your business layer to perform whatever functionality you desire.
I would start by writing a new class with a main() method that calls a business layer method to do whatever you want.
[ October 31, 2002: Message edited by: Roger Graff ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic