My Oracle Support Banner

How To Get Entity Beans Be Refreshed. (Doc ID 754805.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version 10.1.3.3.0 and later
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

Using EJB 3.0 and CMP entity type .When an entity bean is queried using EJBQL to find a
specific entity, It will find the correct one and returns it. Now if a table field is changed
(for that entity) directly from the database and commit it and then it is tried to run the EJB query it returns
 the old entity bean, which is not refreshed with the new data.
But if it is queried the specific field and not the entity bean itself using EJBQL it returns  the
updated data.

Is there any cache for the entity beans in OAS? or any refresh interval parameter which  has to be changed in OAS configuration to get the data up to date?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.