Enviei a seguinte mensagem um pouco antes.
---------------
Por default o JBoss 2.4.x vem com a op��o de commit 'A' e no JBoss 3.x o 
varia entre o tipo 'A' e 'B' .
   A op��o 'A' assume-se que o JBoss � o unico a acessar o BD,
   A op��o 'B'  efetua o cache entre as transa��es, em que o JBoss n�o 
assume que � o �nico a acessar o BD. A sincroniza��o EntityBean/BD � 
efetuado atrav�s de ejbLoad/ejbStore no inicio/fim de cada transa��o.

Veja o que diz a documenta��o do JBoss

Option A: The container caches the beans state between transactions. 
This options assumes that the bean/container is the only one accessing 
the persistent data. Therefore the container synchronizes the memory 
state from the persistent storage only (via ejbLoad) when absolutely 
neccessary (when the state isn't cached yet), that is before the first 
business method executes on a found bean or after the bean is passivated 
and reactivated to serve another business method. This behaviour is 
regardless of wether the business method executes inside or outside a 
transaction.

Option B: The container caches the bean between transactions. However, 
unlike option A the container does not have exclusive access to the 
persistent storage. Therefore, the container will synchronize the memory 
state (via ejbLoad) at the beginning of each transaction. Thus business 
methods executing in a transaction context don't see much benefit from 
the container caching the bean, whereas business methods executing 
outside a transaction context (transaction attributes Never, 
NotSupported or Supports) access the cached (and invalid) state of the 
bean.

[]'s

Claudio Miranda


> Sauda��es, 
>
> Estou com o seguinte problema e gostaria da ajuda dos colegas: 
>
> Necessito invalidar o cache de dados em runtime no Jboss, pois quando fa�o 
>um update em qualquer tabela e fa�o um select em seguida, os dados antigos 
>s�o retornados devido ao cache e eu necessito dos novos dados. 
>
> Algu�m tem alguma dica de como invalidar o cache em runtime? Na 
>configura��o do Jboss tem apenas maneiras de desativar o cache, o que n�o 
>desejo fazer, e mudar o tempo de atualiza��o, o que tamb�m n�o resolve meu 
>problema. 
>
> Qualquer dica/ajuda ser� bem vinda. 
>
> []'s 
>
> Wiliam 
>


---------------------------------------------------------------------
Para cancelar a subscri��o, envie mensagem para: 
[EMAIL PROTECTED]
Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]

Responder a