• 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

Database Transaction using EJB

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
I am using Websphere Studio Application Developer 4.0.2, Websphere Application Server 4.0 and Oracle 8i database. Whenever I am retrieving the records from the database using ejbFindBySearchCriteria()-- Programmer Defined, it is calling the ejbStore() and updating the records. I am new to ejb. As per ejb specs, is it right? Please advice me in this.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, this is true -- at the end of every transaction ejbStore() is called since it the server does not know if the EJB is dirty or not. This is exactly what the spec says to do. There is (however) the "read-only" flag that can be set in the WebSphere extensions deployment descriptor to prevent this.
Kyle
 
maha veer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Brown,
Thanks a lot for your useful info. Is there any specific reason for this ejbStore() call? B'coz I am having a database trigger for a particular table. That is also unnecessarly firing. Anyway I will include the "read-only" attribute. Once again thanks for you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic