> >>>Are our proxies 100% thread safe? > Answer is NO. Then we might have a problem ;)
Currently the proxyMap is maintained within the BeanManager directly. So for the same Bean (Type + Qualifier + Name) we get exactly the same proxy instance! For the application, there is no difference because the proxy will retrieve different shaded bean instances (because this request will go through the correct Contexts). But a problem might occur while we are in the proxy functions if they are not designed to be re-entrant! LieGrue, strub --- Gurkan Erdogdu <[email protected]> schrieb am Di, 22.12.2009: > Von: Gurkan Erdogdu <[email protected]> > Betreff: Re: OWB proxy characteristics > An: [email protected] > Datum: Dienstag, 22. Dezember 2009, 8:37 > >>>Are our proxies 100% > thread safe? > Answer is NO. > > 2009/12/22 Gurkan Erdogdu <[email protected]> > > > As you said, proxies are just facades. It is thought > as immutable. Its sole > > purpose is to get actual instance of the bean from > current context. I > > remember that there is no thread-safety requirements > of the scoped instances > > in the specification. If there are parallel calls to > the same proxy > > instance, this means that parallel calls to same > scoped instances. For > > example, Seam defines some conditions for handling > multi-threaded session or > > application scoped instances. > > > > --Gurkan > > > > 2009/12/22 Mark Struberg <[email protected]> > > > > Hi! > >> > >> Just a short mail to ensure that we take care of a > few things: > >> > >> .) Are our proxies 100% thread safe? Because we > currently only create one > >> proxy instance for all instances of a specific > bean. Which means that > >> parallel requests coming through a web server may > result in concurrent proxy > >> invocations to the same proxy instance, even if > the proxied bean instances > >> behind the facade differ. > >> > >> LieGrue, > >> strub > >> > >> > __________________________________________________ > >> Do You Yahoo!? > >> Sie sind Spam leid? Yahoo! Mail verfügt über > einen herausragenden Schutz > >> gegen Massenmails. > >> http://mail.yahoo.com > >> > > > > > > > > -- > > Gurkan Erdogdu > > http://gurkanerdogdu.blogspot.com > > > > > > -- > Gurkan Erdogdu > http://gurkanerdogdu.blogspot.com > __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
