What's ActiveObject ? Do you have a website which describe this kind of object ?
Coz' i want to access different host like a database, a 3270 host, and so on... So that's interesting to fire x appservers in parallel ! thanx regards Franck ----- Original Message ----- From: "Huber, Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 17, 2002 5:26 PM Subject: AW: Re: Fw: question on thread in servlet As was suggested you can deploy a ActiveObject Pattern with Futur-Pattern for results. Then suppose you have more than one ActiveObject which for example access different Application-Servers on different hosts each. With that approach you can fire x remote methods on the y appl. servers in parallel. Then you are "set to wait" until all results are computed by a wait() in all Future.getResult(); For ActiveObject and Future Pattern read "Pattern oriented SW Architecture: Concurrent and Network Objects" (Buschmann, Stal, ...) And Doug Leas book about multithreading Peter -----Urspr�ngliche Nachricht----- Von: David Mossakowski [mailto:[EMAIL PROTECTED]] Gesendet: Wednesday, April 17, 2002 8:00 PM An: [EMAIL PROTECTED] Betreff: Re: Fw: question on thread in servlet There is also a question of why would you want to create another thread. The servlet thread in itself is new and you probably want to send a response back anyway so you'll wait for whatever processing you need to do so why create a separate thread? I understand situations such as that I explained in earlier e-mail in response to this same question (you seem to be reposting this which isn't nice :). In simple terms: There should be no problem if you need to have your servlets interact with some system using queues and wait/notify that interact with separate threads but you should not need to create separate threads from within servlets. d. reunionf wrote: > Hello to all servlet afficionados, > > I am following thread discussions already a while and there's always > discussion whether to user threads or not (I am not talking about servlet > thread but about threads manually instantiated for other reasons like > asynchroneous handling of tasks for loose coupling or for long running > purposes). > > So here's my question: > > Is is definitely allowed to spawn threads from a servlet (and even put the > reference into the application context to allow others to later on access > that thread) ? and let a thread to send the response to the web browser by > passing the response object to it ? > > Does the jdk specify on this? > > Or Is it specific for each servlet engine? > > Thanks for trying to find out the real truth :-) > regards > > ___________________________________________________________________________ > 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 > > > > -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 **************************************************************************** *** <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. **************************************************************************** *** ___________________________________________________________________________ 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 ___________________________________________________________________________ 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 ___________________________________________________________________________ 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
