We are using standard CMP entity beans and JBOSS 3.2.0. When we execute a finder it returns the cached value and not the actual value from the table.
Which setting should be specified in order to make the finders return the value from the table instead of retrieving from cache.
Thanks, Ram
Jeff Shelley
Ranch Hand
Joined: May 21, 2003
Posts: 70
posted
0
In your jboss.xml, which container configuration are you using? If you go to that entry in /server/${container you're using}/conf/standardjboss.xml,
that file will have an entry that matches the configuration you selected. This can be specified on a bean by bean basis, too. You'll be wanting to use commit option B or C, if I understand your question correctly.
It's almost Friday
Jeff Shelley
Ranch Hand
Joined: May 21, 2003
Posts: 70
posted
0
I looked into this more, and I'd recommend using
"Standard CMP 2.x EntityBean", not "Standard CMP EntityBean".
Anjaneya Ram
Greenhorn
Joined: Jan 23, 2004
Posts: 16
posted
0
Thanks Jeff.
The commit option is set to B. If I retrieve the value from the table then, it retrieves the recent value.
We have wrapped an entity bean around the view (consists of join of two tables). The problem occurs only when we retrieve values from the view. When we check the values in the view in database , they have the recent values. But when using finder on the view, it returns the value from cache.
Please advice.
Jeff Shelley
Ranch Hand
Joined: May 21, 2003
Posts: 70
posted
0
This sounds kind of strange. if you crank up the logging on the org.jboss.cmp package, do you get anything helpful?