Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 42127 invoked from network); 14 Mar 2006 05:10:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Mar 2006 05:10:51 -0000 Received: (qmail 34959 invoked by uid 500); 14 Mar 2006 05:10:49 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 34908 invoked by uid 500); 14 Mar 2006 05:10:48 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 34897 invoked by uid 99); 14 Mar 2006 05:10:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 21:10:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.237.51.194] (HELO green.rootmode.com) (199.237.51.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 21:10:47 -0800 X-ClientAddr: 68.171.62.46 Received: from [192.168.15.100] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) by green.rootmode.com (8.12.10/8.12.10) with ESMTP id k2E5AFus012579 for ; Tue, 14 Mar 2006 00:10:15 -0500 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: References: <1F5F68F5-2E35-4AAF-B90B-072081D34FE7@gmail.com> <44042DE9.2080203@mortbay.com> <4406A4CA.7080501@mortbay.com> <8BD915E8-7E9B-423C-BAE0-30848C10DA49@iq80.com> <440855A4.4060406@mortbay.com> <50B7DE47-82DB-4F5B-AD61-2B2AACC1AE35@iq80.com> <440BF78E.2000802@mortbay.com> <79A344F8-8D67-4957-81FD-A1698EC86101@iq80.com> <441034D7.3030809@coredevelopers.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <81F91B7E-FC3D-4A8C-A7E2-EC5E7BADF216@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Summary? Date: Mon, 13 Mar 2006 21:10:23 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.746.2) X-RootMode-MailScanner-Information: Please contact the ISP for more information X-RootMode-MailScanner: Found to be clean X-MailScanner-From: dain@iq80.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mar 13, 2006, at 6:54 PM, David Blevins wrote: > On Mar 9, 2006, at 5:59 AM, Jules Gosnell wrote: > >> Is it possible for one client to pass the handle of an SFSB to >> another ? Does the spec touch on this ? Does it ever happen ? > > I know that per spec, the client identity cannot change mid- > transaction. Aside from that we allow it. My experience is that a SFSB is almost always tied to a single client (e.g. user). I have seen a few weird pieces of code that passed SFSBs between clients, but the reason I was looking at them was because that didn't work reliably. This is largely due to EJB2.1:7.5.8 which states: Clients are not allowed to make concurrent calls to a stateful session object. If a client-invoked business method is in progress on an instance when another client-invoked call, from the same or different client, arrives at the same instance of a stateful session bean class, the container may throw the java.rmi.RemoteException to the second client[7] if the client is a remote client, or the javax.ejb.EJBException if the client is a local client. This restriction does not apply to a stateless session bean because the container routes each request to a different instance of the session bean class. For the weird cases, we could add an option in the EJB container to not keep a specific SFSB deployment in the client session. -dain