I am having trouble integrating an application that is "servlet-driven." This is what i do: in init(), the servlet creates a new class XmlManager. in doGet(), the servlet calls XmlManager.getProductXml(productId), expecting a string in return (the servlet will then return the string to the browser). XmlManager.getProductXml(productId) does the following.... 1. creates a new Product (which is a thread class) 2. creates a new Batch (which is a thread class) 3. starts the Product thread (prod.start()) 4. starts the Batch thread (batch.start()) 5. waits for the 2 threads to finish (via prod.join() and batch.join()--which, incidentally DO return BEFORE the threads have completed) 6. calls prod.toXml(), which formats the results into XML 7. calls batch.toXml(), which formats the results into XML Both of these thread's run() methods call database connection/sql execution methods of a Dataserver class. Here is the problem: When I start this process via the browser (and therefore, the servlet), the run() methods never complete their job. They ARE being called however (i have set flags and checked), but the methods that call database methods DON'T return. Moreover, if i simply enter the XmlManager through a main() function and proceed down the path that way, everything works just fine. Parameters are passed, the threads run, the data is retrieved, formatted, etc.... I'm a little overwhelmed by where to start looking for this problem. Is it security? I've tried using a "blank" security manager and it still fails. Does anyone have any ideas? Thanks in advance, Laura ___________________________________________________________________________ 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
