Sent: Friday, 27 September, 2002
13:48
Subject: Re: [enterprise-list] instancias
em um relacionamento
Caro Alexandre,
O comportamento de EJB 1.1 n�o tem nada
a ver com esta situa��o. Relacionamentos entre EJB�s n�o existem na
especifica��o EJB 1.1 mas somente no EJB 2.0 e adiante.
Fora isso, vc tem completamente
raz�o:
After the ejbFind<METHOD>(...) method
completes, the instance remains in the pooled
state. The container may, but is not required to, immediately
activate the objects that were
located by the
finder using the transition through the ejbActivate() method.
If the ejbFind<METHOD> method is declared to return
a single primary key, the container
creates
an entity EJBObject (EJBLocalObject) reference for the primary key and returns
it to
the client (local client). If the
ejbFind<METHOD> method is declared to return a collection
of primary keys, the container creates a collection of
entity EJBObject (EJBLocalObject) references
for the primary keys returned from the ejbFind<METHOD>, and
returns the collection
to the client (local
client).
"Alexandre Marino O. L. Filippo"
<[EMAIL PROTECTED]> wrote on 27/09/2002 12:39:57:
>
Gabriel,
>
> This is the behavior consistent with the EJB 1.1
specification:
> - the application server does not automatically load
the bean into the cache
> until the first method invocation;
>
>
> Normalmente esse comportamento descrito acima � o usual,
embora isso possa
> ser configurado no deployment descriptor do EJB, no
caso do Weblogic por
> exemplo. imagino que os outros servidores de
aplica��o tamb�m permitam essa
> configura��o.
>
> [
]'s
> Alexandre Filippo
> Consultant
> BEA Brasil
>
>
> ----- Original Message -----
> From: "Gabriel Esteves
Marques Pinto" <[EMAIL PROTECTED]>
> To:
<[EMAIL PROTECTED]>
> Sent: Tuesday, 24 September,
2002 18:04
> Subject: [enterprise-list] instancias em um
relacionamento
>
>
> >
> > Quando tenho uma
relacao de 1 para muitos entre dois
> > EJBs (EJBA x EJBB por
exemplo)
> >
> > Agora eu chamo getEJBB no EJBA e recebo uma
colecao
> > dos EJBBs relacionados a este EJBA.
> >
>
> minha duvida eh a seguinte:
> >
> > - Este collection
tem todos os bean ja instaciados, ou
> > eles sao instanciados sob
demanda, apenas quando eu
> > solicito um desses objetos ?
>
>
> > Obrigado
> >
> > Gabriel
>
>
> >
_______________________________________________________________________
>
> Yahoo! GeoCities
> > Tudo para criar o seu site: ferramentas
f�ceis de usar, espa�o de sobra e
> acess�rios.
> >
http://br.geocities.yahoo.com/
> >
> >
---------------------------------------------------------------------
>
> Para cancelar a subscri��o, envie mensagem para:
>
[EMAIL PROTECTED]
> > Para comandos
adicionais, envie mensagem para:
>
[EMAIL PROTECTED]
> >
>
>
>
---------------------------------------------------------------------
>
Para cancelar a subscri��o, envie mensagem para: enterprise-list-
>
[EMAIL PROTECTED]
> Para comandos adicionais, envie mensagem
para: enterprise-list-
>
[EMAIL PROTECTED]