Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Access Intent

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! All,
I has 2 answers, one is ejbStore(). What is the other?
If the Access Intent on a method is �Read�, what restrictions does it place on the EJB?
-The ejbStore() method is not called.
-The ejbLoad() method is not called.
-The ejbActivate() method is not called.
-The ejbPassivate() method is not called.
bye.
Sachin
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer should be ejbStore() and ejbPassivate().
ejbLoad() are called by container when it is time to read from the database. If this one can't be called, how can the container associate the data with the bean instance?
ejbPassivate() is called by container when it is about time to disassociate the bean from the data, it also means ejbStore() will be called after this method. As we can find in the infocenter:
Access Intent -
Intent type Specifies whether the method is a read-only method or whether the method can update data (or invoke other methods that can update data, in the same transaction). The legal values are read or update (read/write).
this method will cause other methods that update data be called. So I think ejbPassivate() is an answer.
 
They weren't very bright, but they were very, very big. Ad contrast:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!