Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why here ejbActivate is getting called?

Arun Kandregula
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, (I am working with Weblogic 8.1)
For a CMP bean, when I tried to execute findByPrimaryKey(String), I see that

all three are being called.

Piece of code:

IBooksHome bh = (IBooksHome)PortableRemoteObject.narrow(home,arun.entity.booksCMR.IBooksHome.class);
IBooks book = bh.findByPrimaryKey("10001");

When I called home bussiness method...neither of those 3 are called , which is expected.
I know that finder methods, home bussiness methods are called on instances in the pool. Then ***WHY*** the instance is getting activated and being assigned to the EJBObject when I called findByPrimaryKey. WHY THOSE 3 METHODS ARE CALLED.

Please help me out .
Thanks in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic