This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes BMP - findByPrimaryKey Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "BMP - findByPrimaryKey" Watch "BMP - findByPrimaryKey" New topic
Author

BMP - findByPrimaryKey

Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1101
    
  10

Hello,
I tested a BMP entity bean on JBoss server. While calling the findByPrimaryKey method on the bean, I got the following sequence(through SOPs) :

1.setEntityContext
2.ejbFindByPrimaryKey
3.setEntityContext
4.ejbActivate
5.ejbLoad
6.ejbStore
7.ejbStore

steps 1-5 are clear. But why is ejbStore called when all I want to is to read the record? is it implementation-specific(eg.JBoss)?

Thanks,
Ranga.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
Have you checked out Aspose?
 
subject: BMP - findByPrimaryKey
 
It's not a secret anymore!