• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in data integrity when using read only entity bean

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On weblogic server 6.1, we tried to write some entity beans strictly for read only purpose. We were using DAO before, just thought of learning entity beans .

<max-beans-in-cache>100</max-beans-in-cache>
<idle-timeout-seconds>600</idle-timeout-seconds>
<read-timeout-seconds>60</read-timeout-seconds>
<concurrency-strategy>ReadOnly</concurrency-strategy>

When i deployed with this configuration, i could see ejbLoad() being called for the first time. After an interval of 60 seconds ( due to the property read-timeout-seconds set ) , it makes a call to ejbLoad(). But the wierd part is, i updated some data through toad in the database and i dont see that change at all. But if i use concurrency-strategy as Database, it retrieves the values from database but it calls ejbLoad() and ejbStor() all the time.

Last but not the least, the data i am retrieving is a Collection of entities ( not more than 50). Is it ok to use Entity Beans or continue DAO,as we have been doing all the time

Replied will be appreciated,as i gotto move along one of the two options
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic