Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BMP - findByPrimaryKey

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic