I'm wondering about the way entity bean works in BEA Weblogic8.1? I'm not sure whether my descriptions about entity bean below are correct or not?
when call Home.create() method
1
ejb container grab an instance from pool
2 ejb container call ejbCreate() method
3 ejb container insert record into the table in database
4 return primary key to ejb container
5 ejb container create an EJBObject for this primary key
6 ejb container return the remote reference to client
when call home.finderbyXXX() method
1 ejb container grab an instance from pool
2 ejb container call ejbfindXXX() method to return a list of primary keys to container
3 ejb container create a corresponding EJBObject for each primary key
4 ejb container return a list of remote references to client
when call a business method on remote reference
1 EJBObject would grab an instance from pool
2 ejb container load instance state from database using primary key from entitycontext
3 ejb container call business method on this instance.
how is the primary key stored in ejb container and how is it associated with EJBObject or Remote Reference? how is Remote reference associated with EJBObject?
any help appreciated!!