users@glassfish.java.net

Re: Sessionbeans / Classloaders / Redeploy

From: Mahesh Kannan <Mahesh.Kannan_at_Sun.COM>
Date: Thu, 17 Jan 2008 07:50:34 -0800

glassfish_at_javadesktop.org wrote:
>> Yes. Each application has its own class loader.
>> And all session beans are created and live inside
>> this classloader till the app is undeployed.
>>
>
> After greeneyed response I found "21.1.2 Programming Restrictions" of the ejbcore-spec. As I understand the first restriction is it not even allowed to use singletons/static fields in the business code behind the session bean, due to the fact that instances might be placed in different containers.
>
> Is it somewhere documented if glassfish does lift some of those restrictions?
> [Message sent by forum member 'peterka' (peterka)]
>
No. Glassfish does have the same restrictions.
Note that bean instances from the same app are all placed in the same
class loader.

> http://forums.java.net/jive/thread.jspa?messageID=254308
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>