Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 603 invoked from network); 8 May 2007 01:52:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 01:52:18 -0000 Received: (qmail 53278 invoked by uid 500); 8 May 2007 01:52:15 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 53219 invoked by uid 500); 8 May 2007 01:52:15 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 53196 invoked by uid 99); 8 May 2007 01:52:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 18:52:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of satya.ghattu@citigroup.com designates 199.67.179.105 as permitted sender) Received: from [199.67.179.105] (HELO mail.citigroup.com) (199.67.179.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 18:52:07 -0700 Received: from imbarc-ny01.ny.ssmb.com (imbarc-ny01.ny.ssmb.com [162.124.186.138]) by imbaspam-ny05.iplex.ssmb.com (8.13.8/8.13.8/SSMB_EXT/ev: 16778 $) with ESMTP id l481pjF6001985 for ; Tue, 8 May 2007 01:51:45 GMT Received: from mailhub-nyc3.ny.ssmb.com (mailhub-nyc3-hme0.ny.ssmb.com [162.124.148.17]) by imbarc-ny01.ny.ssmb.com (8.13.7/8.13.7/SSMB_QQQ_IN/1.1) with ESMTP id l481pf3r004554 for ; Tue, 8 May 2007 01:51:41 GMT Received: from exnjsm02.nam.nsroot.net (exnjsm02.nam.nsroot.net [150.110.188.173]) by mailhub-nyc3.ny.ssmb.com (8.13.7/8.13.7/CG_HUB) with ESMTP id l481pdZD022930 for ; Tue, 8 May 2007 01:51:41 GMT Received: from exnjmb17.nam.nsroot.net ([150.110.142.136]) by exnjsm02.nam.nsroot.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 7 May 2007 21:51:39 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Best practice to use a Thread from Geronimo's Default ThreadPool Date: Mon, 7 May 2007 21:51:36 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Best practice to use a Thread from Geronimo's Default ThreadPool Thread-Index: AceRE2nK0NA2O9YJREmg7s0dmqZ5AA== From: "Ghattu, Satya " To: X-OriginalArrivalTime: 08 May 2007 01:51:39.0055 (UTC) FILETIME=[6B18EBF0:01C79113] X-Scanned-By: MIMEDefang 2.52 on 172.27.136.24 X-Virus-Checked: Checked by ClamAV on apache.org Folks, Is there a best practice around using threads from the default Thread pool? I am trying to write a simple application that when deployed to the server will open a socket and start listening for messages. In my application I could start a new thread and listen for messages, but I would like to use geronimo's default thread pool so that the container manages the thread, not my application code.=20 Also, what would be the best way to deploy such kind of application? Right now I am deploying this as a WebApp and starting to listen in the Servlet's init() method, is writing a Gbean better? Any suggestions? Thank You, Satya Ghattu Citi Architecture & Technology Engineering (CATE) | Development Engineering | 283 King George Road, Building D 4th Floor, Warren, New Jersey, NJ 07059 | satya.ghattu@citi.com=20