Hello,
Quick design question, hope its not off topic too much. I have a servlet
that does two things: takes an html file and makes it into a PS file, and
then prints that PS file. The first step is implemented with an external
program called through exec(), and the second is just a java class with a
print() method that does the print code.
My question is this: before, these two steps were two sepperate things. I
did the html to PS conversion manually and then ran the java program. Now I
need the servlet to do both. I guess the first question is this: should I
even run this in threads? My idea was to have one thread do the external
program call and wait until the program was done before terminating, and a
second thread that waited until the first was done and then printed the file.
If this is a thread problem, then whats the best design way of doing this?
Have a 3 classes, one that handles the external call, one that handles
printing, and a main class that controls the two in threads? I'm new at
threads totally, and trying to learn the best way of OO design.
Thanks for any replies, and I apoligize for any long-windedness or
off-topicness.
--
Branden Root
Web Developer
Portent Interactive
___________________________________________________________________________
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