Lalith Jayaweera wrote:

> Hi,
>
> thanks for Ur reply, But I couldn't understand what U mentioned, Could U please
> explain it bit more.
>
> Consider that major part of my project is done using servlets, and this is the
> part am having prolems,If it is a application as U mentioned How can I
> communicate with the servlets which have been writen earlier.
>

If all of your logic is embedded in servlets, and you just want to call one of
them, a stand-alone application can fit the need pretty nicely.  Consider the
following thoughts:

* The stand alone application can pretend to be a browser
  by using the URLConnection class to issue a request to your
  servlet's URI.  The servlet doesn't have to know that it was
  called from a program instead of by a user.

* See the networking trail in the Java Language Tutorial
  (http://java.sun.com/docs/books/tutorial) for example code
  using this class.

* To schedule when this application is called, look at using the
  scheduling facilities already provided by your operating system,
  if any -- such as "cron" on Unix-based systems.  Don't bother
  to write system-level software like this if it already exists.

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to