File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Cache settings Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Cache settings" Watch "Cache settings" New topic
Author

Cache settings

Anjaneya Ram
Greenhorn

Joined: Jan 23, 2004
Posts: 16
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
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
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
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
This sounds kind of strange. if you crank up the logging on the org.jboss.cmp package, do you get anything helpful?
 
IntelliJ Java IDE
 
subject: Cache settings
 
Threads others viewed
How to store Database tables in Cache
Cache Reference Information
Problem with Cache (filter/Hibernate)
Problem with Cache (filter/Hibernate)
hibernate problem.
Two Laptop Bag