File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 1083
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BMP - findByPrimaryKey